Class: ScaleEngineAPI::Response
- Inherits:
-
Object
- Object
- ScaleEngineAPI::Response
- Defined in:
- lib/scaleengine/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(json) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(json) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/scaleengine/response.rb', line 5 def initialize(json) @body = JSON.parse(json) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/scaleengine/response.rb', line 3 def body @body end |