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.
109 110 111 112 113 114 |
# File 'lib/blix/rest.rb', line 109 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.
107 108 109 |
# File 'lib/blix/rest.rb', line 107 def content @content end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
106 107 108 |
# File 'lib/blix/rest.rb', line 106 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
105 106 107 |
# File 'lib/blix/rest.rb', line 105 def status @status end |