Exception: Charging::Http::LastResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/charging/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_responseObject (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

#messageObject



14
15
16
# File 'lib/charging/http.rb', line 14

def message
  last_response.to_s
end