Class: Command::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/karel/command/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(compass:, location:, tokens:, operations_count: 1, return_value: nil) ⇒ Response

Returns a new instance of Response.



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/karel/command/response.rb', line 11

def initialize(
  compass:,
  location:,
  tokens:,
  operations_count: 1,
  return_value: nil
)
  @compass = compass
  @location = location
  @return_value = return_value
  @tokens = tokens
  @operations_count = operations_count
end