Exception: Tr3llo::Client::RequestError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Tr3llo::Client::RequestError
- Defined in:
- lib/3llo/client.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
14 15 16 17 |
# File 'lib/3llo/client.rb', line 14 def initialize(response) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'lib/3llo/client.rb', line 12 def response @response end |
Instance Method Details
#message ⇒ Object
19 20 21 |
# File 'lib/3llo/client.rb', line 19 def "Request error: #{response}" end |