Exception: Mailgems::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Mailgems::ApiError
- Defined in:
- lib/mailgems/api_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ApiError
constructor
A new instance of ApiError.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message) ⇒ ApiError
Returns a new instance of ApiError.
7 8 9 10 |
# File 'lib/mailgems/api_error.rb', line 7 def initialize(code, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/mailgems/api_error.rb', line 5 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/mailgems/api_error.rb', line 5 def @message end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/mailgems/api_error.rb', line 12 def to_s reason end |