Class: MarsRover::Plateau
- Inherits:
-
Object
- Object
- MarsRover::Plateau
- Defined in:
- lib/mars_rover/plateau.rb
Instance Attribute Summary collapse
-
#x_lower_limit ⇒ Object
Returns the value of attribute x_lower_limit.
-
#x_upper_limit ⇒ Object
Returns the value of attribute x_upper_limit.
-
#y_lower_limit ⇒ Object
Returns the value of attribute y_lower_limit.
-
#y_upper_limit ⇒ Object
Returns the value of attribute y_upper_limit.
Instance Method Summary collapse
-
#initialize(x_upper_limit, y_upper_limit) ⇒ Plateau
constructor
A new instance of Plateau.
Constructor Details
#initialize(x_upper_limit, y_upper_limit) ⇒ Plateau
Returns a new instance of Plateau.
6 7 8 9 10 11 |
# File 'lib/mars_rover/plateau.rb', line 6 def initialize(x_upper_limit, y_upper_limit) self.x_upper_limit = x_upper_limit self.y_upper_limit = y_upper_limit self.x_lower_limit = 0 self.y_lower_limit = 0 end |
Instance Attribute Details
#x_lower_limit ⇒ Object
Returns the value of attribute x_lower_limit.
4 5 6 |
# File 'lib/mars_rover/plateau.rb', line 4 def x_lower_limit @x_lower_limit end |
#x_upper_limit ⇒ Object
Returns the value of attribute x_upper_limit.
4 5 6 |
# File 'lib/mars_rover/plateau.rb', line 4 def x_upper_limit @x_upper_limit end |
#y_lower_limit ⇒ Object
Returns the value of attribute y_lower_limit.
4 5 6 |
# File 'lib/mars_rover/plateau.rb', line 4 def y_lower_limit @y_lower_limit end |
#y_upper_limit ⇒ Object
Returns the value of attribute y_upper_limit.
4 5 6 |
# File 'lib/mars_rover/plateau.rb', line 4 def y_upper_limit @y_upper_limit end |