Exception: Yajl::HttpStream::HttpError
- Defined in:
- lib/yajl/http_stream.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, headers) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, headers) ⇒ HttpError
Returns a new instance of HttpError.
21 22 23 24 |
# File 'lib/yajl/http_stream.rb', line 21 def initialize(, headers) @message = @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
19 20 21 |
# File 'lib/yajl/http_stream.rb', line 19 def headers @headers end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
19 20 21 |
# File 'lib/yajl/http_stream.rb', line 19 def @message end |