Class: Houston::Roadmaps::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/roadmaps/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/houston/roadmaps/configuration.rb', line 5

def initialize
  @markers = []
end

Instance Attribute Details

#markersObject (readonly)

Returns the value of attribute markers.



3
4
5
# File 'lib/houston/roadmaps/configuration.rb', line 3

def markers
  @markers
end

Instance Method Details

#date(date_string, description) ⇒ Object



9
10
11
# File 'lib/houston/roadmaps/configuration.rb', line 9

def date(date_string, description)
  @markers.push(date: Date.parse(date_string), description: description)
end