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.
20 21 22 23 |
# File 'lib/yajl/http_stream.rb', line 20 def initialize(, headers) @message = @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
18 19 20 |
# File 'lib/yajl/http_stream.rb', line 18 def headers @headers end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
18 19 20 |
# File 'lib/yajl/http_stream.rb', line 18 def @message end |