Exception: Firering::Connection::HTTPError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Firering::Connection::HTTPError
- Defined in:
- lib/firering/connection.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
Instance Method Summary collapse
-
#initialize(http) ⇒ HTTPError
constructor
A new instance of HTTPError.
- #to_s ⇒ Object
Constructor Details
#initialize(http) ⇒ HTTPError
Returns a new instance of HTTPError.
177 178 179 |
# File 'lib/firering/connection.rb', line 177 def initialize(http) @http = http end |
Instance Attribute Details
#http ⇒ Object (readonly)
Returns the value of attribute http.
176 177 178 |
# File 'lib/firering/connection.rb', line 176 def http @http end |
Instance Method Details
#to_s ⇒ Object
180 181 182 |
# File 'lib/firering/connection.rb', line 180 def to_s "http error #{@http.error if @http.respond_to?(:error)}".strip end |