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.



508
509
510
511
# File 'lib/active_rest_client/request.rb', line 508

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



507
508
509
# File 'lib/active_rest_client/request.rb', line 507

def body
  @body
end

#statusObject

Returns the value of attribute status.



507
508
509
# File 'lib/active_rest_client/request.rb', line 507

def status
  @status
end