Class: ApiMaker::CommandSpecHelper::AddedCommand
- Inherits:
-
Object
- Object
- ApiMaker::CommandSpecHelper::AddedCommand
- Defined in:
- lib/api_maker/command_spec_helper.rb
Instance Method Summary collapse
-
#initialize(id, response) ⇒ AddedCommand
constructor
A new instance of AddedCommand.
- #result ⇒ Object
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
#result ⇒ Object
53 54 55 |
# File 'lib/api_maker/command_spec_helper.rb', line 53 def result @result ||= @response.result.fetch(@id).fetch(:data) end |