Class: Standup::ConfigParser

Inherits:
Object
  • Object
show all
Defined in:
lib/standup/config_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



4
5
6
# File 'lib/standup/config_parser.rb', line 4

def config
  @config
end

#from_dateObject (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_dateObject (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