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
Instance Method Summary collapse
- #initialize ⇒ void constructor
Constructor Details
#initialize ⇒ void
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 ⇒ String?
15 16 17 |
# File 'lib/lunchmoney/configuration.rb', line 15 def api_key @api_key end |
#validate_object_attributes ⇒ Boolean
18 19 20 |
# File 'lib/lunchmoney/configuration.rb', line 18 def validate_object_attributes @validate_object_attributes end |