Class: RobotsFindKitten::ThingInfo
- Inherits:
-
Object
- Object
- RobotsFindKitten::ThingInfo
- Defined in:
- lib/robotsfindkitten/thing_info.rb
Instance Attribute Summary collapse
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y, symbol) ⇒ ThingInfo
constructor
A new instance of ThingInfo.
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
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
3 4 5 |
# File 'lib/robotsfindkitten/thing_info.rb', line 3 def symbol @symbol end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
3 4 5 |
# File 'lib/robotsfindkitten/thing_info.rb', line 3 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
3 4 5 |
# File 'lib/robotsfindkitten/thing_info.rb', line 3 def y @y end |