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.



943
944
945
946
947
# File 'lib/flexirest/request.rb', line 943

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



942
943
944
# File 'lib/flexirest/request.rb', line 942

def body
  @body
end

#headersObject

Returns the value of attribute headers.



942
943
944
# File 'lib/flexirest/request.rb', line 942

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



942
943
944
# File 'lib/flexirest/request.rb', line 942

def status
  @status
end