Class: RobotsFindKitten::ThingInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/robotsfindkitten/thing_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y, symbol) ⇒ ThingInfo

Returns a new instance of ThingInfo.



5
6
7
8
9
# File 'lib/robotsfindkitten/thing_info.rb', line 5

def initialize(x, y, symbol)
  @x = x
  @y = y
  @symbol = symbol
end

Instance Attribute Details

#symbolObject (readonly)

Returns the value of attribute symbol.



3
4
5
# File 'lib/robotsfindkitten/thing_info.rb', line 3

def symbol
  @symbol
end

#xObject (readonly)

Returns the value of attribute x.



3
4
5
# File 'lib/robotsfindkitten/thing_info.rb', line 3

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



3
4
5
# File 'lib/robotsfindkitten/thing_info.rb', line 3

def y
  @y
end