class ApiMaker::CommandSpecHelper::AddedCommand

Public Class Methods

new(id, response) click to toggle source
# File lib/api_maker/command_spec_helper.rb, line 48
def initialize(id, response)
  @id = id
  @response = response
end

Public Instance Methods

result() click to toggle source
# File lib/api_maker/command_spec_helper.rb, line 53
def result
  @result ||= @response.result.fetch(@id).fetch(:data)
end