Class: Havox::Edge

Inherits:
Object
  • Object
show all
Defined in:
lib/havox/classes/edge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



3
4
5
# File 'lib/havox/classes/edge.rb', line 3

def attributes
  @attributes
end

#fromObject (readonly)

Returns the value of attribute from.



3
4
5
# File 'lib/havox/classes/edge.rb', line 3

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



3
4
5
# File 'lib/havox/classes/edge.rb', line 3

def to
  @to
end