Class: Havox::Edge
- Inherits:
-
Object
- Object
- Havox::Edge
- Defined in:
- lib/havox/classes/edge.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to, attributes) ⇒ Edge
constructor
A new instance of Edge.
Constructor Details
#initialize(from, to, attributes) ⇒ Edge
Returns a new instance of Edge.
5 6 7 8 9 |
# File 'lib/havox/classes/edge.rb', line 5 def initialize(from, to, attributes) @from = from @to = to @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/havox/classes/edge.rb', line 3 def attributes @attributes end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/havox/classes/edge.rb', line 3 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/havox/classes/edge.rb', line 3 def to @to end |