Class: HookTheory::Node
- Inherits:
-
Object
- Object
- HookTheory::Node
- Defined in:
- lib/hooktheory/node.rb
Instance Attribute Summary collapse
-
#child_path ⇒ Object
readonly
Returns the value of attribute child_path.
-
#chord_html ⇒ Object
readonly
Returns the value of attribute chord_html.
-
#chord_id ⇒ Object
readonly
Returns the value of attribute chord_id.
-
#probability ⇒ Object
readonly
Returns the value of attribute probability.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(options = {}) ⇒ Node
Returns a new instance of Node.
4 5 6 7 8 9 |
# File 'lib/hooktheory/node.rb', line 4 def initialize( = {}) @chord_id = ["chord_ID"] @chord_html = ["chord_HTML"] @probability = ["probability"] @child_path = ["child_path"] end |
Instance Attribute Details
#child_path ⇒ Object (readonly)
Returns the value of attribute child_path.
3 4 5 |
# File 'lib/hooktheory/node.rb', line 3 def child_path @child_path end |
#chord_html ⇒ Object (readonly)
Returns the value of attribute chord_html.
3 4 5 |
# File 'lib/hooktheory/node.rb', line 3 def chord_html @chord_html end |
#chord_id ⇒ Object (readonly)
Returns the value of attribute chord_id.
3 4 5 |
# File 'lib/hooktheory/node.rb', line 3 def chord_id @chord_id end |
#probability ⇒ Object (readonly)
Returns the value of attribute probability.
3 4 5 |
# File 'lib/hooktheory/node.rb', line 3 def probability @probability end |