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 }
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.
14 15 16 17 |
# File 'lib/minder/config.rb', line 14 def initialize(location = nil) self.location = location @data = {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
12 13 14 |
# File 'lib/minder/config.rb', line 12 def data @data end |
#location ⇒ Object
Returns the value of attribute location.
11 12 13 |
# File 'lib/minder/config.rb', line 11 def location @location end |