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.



937
938
939
940
941
# File 'lib/flexirest/request.rb', line 937

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



936
937
938
# File 'lib/flexirest/request.rb', line 936

def body
  @body
end

#headersObject

Returns the value of attribute headers.



936
937
938
# File 'lib/flexirest/request.rb', line 936

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



936
937
938
# File 'lib/flexirest/request.rb', line 936

def status
  @status
end