Class: Standup::ConfigParser
- Inherits:
-
Object
- Object
- Standup::ConfigParser
- Defined in:
- lib/standup/config_parser.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#from_date ⇒ Object
readonly
Returns the value of attribute from_date.
-
#to_date ⇒ Object
readonly
Returns the value of attribute to_date.
Instance Method Summary collapse
-
#initialize(config) ⇒ ConfigParser
constructor
A new instance of ConfigParser.
Constructor Details
#initialize(config) ⇒ ConfigParser
Returns a new instance of ConfigParser.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/standup/config_parser.rb', line 6 def initialize(config) @config = config help_needed? verbose? validate_config! @to_date, @from_date = parse_dates end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/standup/config_parser.rb', line 4 def config @config end |
#from_date ⇒ Object (readonly)
Returns the value of attribute from_date.
4 5 6 |
# File 'lib/standup/config_parser.rb', line 4 def from_date @from_date end |
#to_date ⇒ Object (readonly)
Returns the value of attribute to_date.
4 5 6 |
# File 'lib/standup/config_parser.rb', line 4 def to_date @to_date end |