Class: LunchMoney::Configuration
- Inherits:
-
Object
- Object
- LunchMoney::Configuration
- Defined in:
- lib/lunchmoney/configuration.rb
Overview
Holds global configuration options for this gem
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#validate_object_attributes ⇒ Object
Returns the value of attribute validate_object_attributes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 |
# File 'lib/lunchmoney/configuration.rb', line 21 def initialize @api_key = ENV.fetch("LUNCHMONEY_TOKEN", nil) @validate_object_attributes = T.let(true, T::Boolean) end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
15 16 17 |
# File 'lib/lunchmoney/configuration.rb', line 15 def api_key @api_key end |
#validate_object_attributes ⇒ Object
Returns the value of attribute validate_object_attributes.
18 19 20 |
# File 'lib/lunchmoney/configuration.rb', line 18 def validate_object_attributes @validate_object_attributes end |