Class: AltaBikes::Configuration
- Inherits:
-
Object
- Object
- AltaBikes::Configuration
- 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
-
#json_url ⇒ Object
Returns the value of attribute json_url.
-
#stations_root ⇒ Object
Returns the value of attribute stations_root.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_url ⇒ Object
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_root ⇒ Object
Returns the value of attribute stations_root.
3 4 5 |
# File 'lib/alta_bikes/configuration.rb', line 3 def stations_root @stations_root end |