Class: ApiMaker::CommandSpecHelper::AddedCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/api_maker/command_spec_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(id, response) ⇒ AddedCommand

Returns a new instance of AddedCommand.



48
49
50
51
# File 'lib/api_maker/command_spec_helper.rb', line 48

def initialize(id, response)
  @id = id
  @response = response
end

Instance Method Details

#resultObject



53
54
55
# File 'lib/api_maker/command_spec_helper.rb', line 53

def result
  @result ||= @response.result.fetch(@id).fetch(:data)
end