Exception: Blix::Rest::RawResponse
- Inherits:
-
StandardError
- Object
- StandardError
- Blix::Rest::RawResponse
- Defined in:
- lib/blix/rest.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status = nil, headers = nil) ⇒ RawResponse
constructor
A new instance of RawResponse.
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(, status = nil, headers = nil) super( || "") @status = status @headers = headers @content = end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
116 117 118 |
# File 'lib/blix/rest.rb', line 116 def content @content end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
115 116 117 |
# File 'lib/blix/rest.rb', line 115 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
114 115 116 |
# File 'lib/blix/rest.rb', line 114 def status @status end |