Class: Resas::Api::Client::Response
- Inherits:
-
Object
- Object
- Resas::Api::Client::Response
- Defined in:
- lib/resas/api/client/response.rb
Defined Under Namespace
Classes: Body
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(result) ⇒ Response
constructor
A new instance of Response.
- #result ⇒ Object
Constructor Details
#initialize(result) ⇒ Response
Returns a new instance of Response.
3 4 5 |
# File 'lib/resas/api/client/response.rb', line 3 def initialize( result ) @result = result end |
Instance Method Details
#body ⇒ Object
7 8 9 |
# File 'lib/resas/api/client/response.rb', line 7 def body Resas::Api::Client::Response::Body.new( @result.body ) end |
#result ⇒ Object
11 12 13 |
# File 'lib/resas/api/client/response.rb', line 11 def result body.result end |