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.



118
119
120
121
122
123
# File 'lib/blix/rest.rb', line 118

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.



116
117
118
# File 'lib/blix/rest.rb', line 116

def content
  @content
end

#headersObject (readonly)

Returns the value of attribute headers.



115
116
117
# File 'lib/blix/rest.rb', line 115

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



114
115
116
# File 'lib/blix/rest.rb', line 114

def status
  @status
end