Exception: Flexirest::ResponseParseException

Inherits:
RequestException show all
Defined in:
lib/flexirest/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ResponseParseException

Returns a new instance of ResponseParseException.



929
930
931
932
933
# File 'lib/flexirest/request.rb', line 929

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



928
929
930
# File 'lib/flexirest/request.rb', line 928

def body
  @body
end

#headersObject

Returns the value of attribute headers.



928
929
930
# File 'lib/flexirest/request.rb', line 928

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



928
929
930
# File 'lib/flexirest/request.rb', line 928

def status
  @status
end