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.



552
553
554
555
# File 'lib/active_rest_client/request.rb', line 552

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



551
552
553
# File 'lib/active_rest_client/request.rb', line 551

def body
  @body
end

#statusObject

Returns the value of attribute status.



551
552
553
# File 'lib/active_rest_client/request.rb', line 551

def status
  @status
end