Class: Tinge::Sighting

Inherits:
Object
  • Object
show all
Defined in:
lib/tinge/sighting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color, node, parent = nil) ⇒ Sighting

Returns a new instance of Sighting.



6
7
8
9
10
# File 'lib/tinge/sighting.rb', line 6

def initialize(color, node, parent = nil)
  @color  = color
  @node   = node
  @parent = parent
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



5
6
7
# File 'lib/tinge/sighting.rb', line 5

def color
  @color
end

#nodeObject (readonly)

Returns the value of attribute node.



5
6
7
# File 'lib/tinge/sighting.rb', line 5

def node
  @node
end

#parentObject (readonly)

Returns the value of attribute parent.



5
6
7
# File 'lib/tinge/sighting.rb', line 5

def parent
  @parent
end