Class: Cloudxls::ReadResponse

Inherits:
Object
  • Object
show all
Includes:
BaseResponse
Defined in:
lib/cloudxls.rb

Instance Method Summary collapse

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_hString

Response as Hash (used with json)

Returns:

  • (String)


214
215
216
# File 'lib/cloudxls.rb', line 214

def to_h
  JSON.load(response_body)
end