Class: LunchMoney::Errors
- Inherits:
-
Object
- Object
- LunchMoney::Errors
- Defined in:
- lib/lunchmoney/errors.rb
Overview
This class is used to represent errors returned directly from the LunchMoney API
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(message: nil) ⇒ Errors
constructor
A new instance of Errors.
Constructor Details
#initialize(message: nil) ⇒ Errors
Returns a new instance of Errors.
11 12 13 14 15 |
# File 'lib/lunchmoney/errors.rb', line 11 def initialize(message: nil) @messages = T.let([], T::Array[String]) @messages << unless .nil? end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
8 9 10 |
# File 'lib/lunchmoney/errors.rb', line 8 def @messages end |