Exception: Charging::Http::LastResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Charging::Http::LastResponseError
- Defined in:
- lib/charging/http.rb
Instance Attribute Summary collapse
-
#last_response ⇒ Object
readonly
Returns the value of attribute last_response.
Instance Method Summary collapse
-
#initialize(last_response) ⇒ LastResponseError
constructor
A new instance of LastResponseError.
- #message ⇒ Object
Constructor Details
#initialize(last_response) ⇒ LastResponseError
Returns a new instance of LastResponseError.
9 10 11 12 |
# File 'lib/charging/http.rb', line 9 def initialize(last_response) super @last_response = last_response end |
Instance Attribute Details
#last_response ⇒ Object (readonly)
Returns the value of attribute last_response.
7 8 9 |
# File 'lib/charging/http.rb', line 7 def last_response @last_response end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/charging/http.rb', line 14 def last_response.to_s end |