Exception: ActiveRestClient::ResponseParseException

Inherits:
RequestException
  • Object
show all
Defined in:
lib/active_rest_client/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ResponseParseException

Returns a new instance of ResponseParseException.



517
518
519
520
# File 'lib/active_rest_client/request.rb', line 517

def initialize(options)
  @status = options[:status]
  @body = options[:body]
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



516
517
518
# File 'lib/active_rest_client/request.rb', line 516

def body
  @body
end

#statusObject

Returns the value of attribute status.



516
517
518
# File 'lib/active_rest_client/request.rb', line 516

def status
  @status
end