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.



78
79
80
81
# File 'lib/api_maker/command_spec_helper.rb', line 78

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

Instance Method Details

#resultObject



83
84
85
# File 'lib/api_maker/command_spec_helper.rb', line 83

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