Class: Minder::Config
- Inherits:
-
Object
- Object
- Minder::Config
- Defined in:
- lib/minder/config.rb
Constant Summary collapse
- DEFAULTS =
{ work_duration: 25, short_break_duration: 5, long_break_duration: 15, emoji: 'tomato', database_name: 'database' }
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(location = nil) ⇒ Config
constructor
A new instance of Config.
- #load ⇒ Object
Constructor Details
#initialize(location = nil) ⇒ Config
Returns a new instance of Config.
16 17 18 19 |
# File 'lib/minder/config.rb', line 16 def initialize(location = nil) self.location = location @data = {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
14 15 16 |
# File 'lib/minder/config.rb', line 14 def data @data end |
#location ⇒ Object
Returns the value of attribute location.
13 14 15 |
# File 'lib/minder/config.rb', line 13 def location @location end |