Class: Cloudxls::ReadResponse
- Inherits:
-
Object
- Object
- Cloudxls::ReadResponse
- Includes:
- BaseResponse
- Defined in:
- lib/cloudxls.rb
Instance Method Summary collapse
-
#initialize(req) ⇒ ReadResponse
constructor
A new instance of ReadResponse.
-
#to_h ⇒ String
Response as Hash (used with json).
Methods included from BaseResponse
#each, #response_body, #save_as, #to_s, #write_to
Constructor Details
#initialize(req) ⇒ ReadResponse
Returns a new instance of ReadResponse.
206 207 208 |
# File 'lib/cloudxls.rb', line 206 def initialize(req) @request = req end |
Instance Method Details
#to_h ⇒ String
Response as Hash (used with json)
214 215 216 |
# File 'lib/cloudxls.rb', line 214 def to_h JSON.load(response_body) end |