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.
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
#result ⇒ Object
83 84 85 |
# File 'lib/api_maker/command_spec_helper.rb', line 83 def result @result ||= @response.result.fetch(@id).fetch(:data) end |