Class: AltaBikes::Configuration

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

Constant Summary collapse

CITIES =
{
  chicago:    'http://www.divvybikes.com/stations/json',
  new_york:   'http://www.citibikenyc.com/stations/json',
  toronto:    'http://www.bikesharetoronto.com/stations/json',
  columbus:   'http://www.cogobikeshare.com/stations/json',
  bay_area:   'http://www.bayareabikeshare.com/stations/json',
  chattanooga:'http://www.bikechattanooga.com/stations/json'
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
17
# File 'lib/alta_bikes/configuration.rb', line 14

def initialize
  @json_url      = CITIES[:chicago]
  @stations_root = 'stationBeanList'
end

Instance Attribute Details

#json_urlObject

Returns the value of attribute json_url.



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

def json_url
  @json_url
end

#stations_rootObject

Returns the value of attribute stations_root.



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

def stations_root
  @stations_root
end