Class: Robotoy::Services::Orientation
- Inherits:
-
Object
- Object
- Robotoy::Services::Orientation
- Defined in:
- lib/robotoy/services/orientation.rb
Instance Method Summary collapse
-
#initialize(robot:, side:) ⇒ Orientation
constructor
A new instance of Orientation.
- #perform ⇒ Object
Constructor Details
#initialize(robot:, side:) ⇒ Orientation
Returns a new instance of Orientation.
4 5 6 7 8 |
# File 'lib/robotoy/services/orientation.rb', line 4 def initialize(robot:, side:) @robot = robot @side = side order_orients end |
Instance Method Details
#perform ⇒ Object
10 11 12 |
# File 'lib/robotoy/services/orientation.rb', line 10 def perform send(@side) end |