Exception: SCB::HTTP::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SCB::HTTP::Exception
- Defined in:
- lib/scb/http.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = nil) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(response = nil) ⇒ Exception
47 48 49 50 |
# File 'lib/scb/http.rb', line 47 def initialize(response = nil) @response = response = response. if response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
45 46 47 |
# File 'lib/scb/http.rb', line 45 def end |
#response ⇒ Object
Returns the value of attribute response.
44 45 46 |
# File 'lib/scb/http.rb', line 44 def response @response end |