Exception: Blix::Rest::RawResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blix/rest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = nil, headers = nil) ⇒ RawResponse

Returns a new instance of RawResponse.



109
110
111
112
113
114
# File 'lib/blix/rest.rb', line 109

def initialize(message, status = nil, headers = nil)
  super(message || "")
  @status  = status
  @headers = headers
  @content = message
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



107
108
109
# File 'lib/blix/rest.rb', line 107

def content
  @content
end

#headersObject (readonly)

Returns the value of attribute headers.



106
107
108
# File 'lib/blix/rest.rb', line 106

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



105
106
107
# File 'lib/blix/rest.rb', line 105

def status
  @status
end