Class: HookTheory::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/hooktheory/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @chord_id = options["chord_ID"]
  @chord_html = options["chord_HTML"]
  @probability = options["probability"]
  @child_path = options["child_path"]
end

Instance Attribute Details

#child_pathObject (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_htmlObject (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_idObject (readonly)

Returns the value of attribute chord_id.



3
4
5
# File 'lib/hooktheory/node.rb', line 3

def chord_id
  @chord_id
end

#probabilityObject (readonly)

Returns the value of attribute probability.



3
4
5
# File 'lib/hooktheory/node.rb', line 3

def probability
  @probability
end