Exception: Mat::HTTP::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mat::HTTP::Exception
- Defined in:
- lib/mat/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
Returns a new instance of Exception.
39 40 41 42 |
# File 'lib/mat/http.rb', line 39 def initialize(response = nil) @response = response @message = response. if response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
37 38 39 |
# File 'lib/mat/http.rb', line 37 def @message end |
#response ⇒ Object
Returns the value of attribute response.
36 37 38 |
# File 'lib/mat/http.rb', line 36 def response @response end |