Module: Citywrapper
- Defined in:
- lib/citywrapper.rb,
lib/citywrapper/version.rb,
lib/citywrapper/api_base.rb,
lib/citywrapper/configuration.rb,
lib/citywrapper/resources/coverage.rb,
lib/citywrapper/resources/travel_time.rb,
lib/citywrapper/resources/single_point_coverage.rb
Defined Under Namespace
Classes: ApiBase, Configuration, Coverage, SinglePointCoverage, TravelTime
Constant Summary collapse
- BASE_URL =
'https://developer.citymapper.com/api'
- API_VERSION =
'1'
- VERSION =
"1.0.0"
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
- .configuration ⇒ Object
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
18 19 20 |
# File 'lib/citywrapper.rb', line 18 def api_key @api_key end |
.configuration ⇒ Object
22 23 24 25 |
# File 'lib/citywrapper.rb', line 22 def self.configuration warn "NOTE: Citymaper APIs are now deprecated and will likely not work in the future" @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
27 28 29 |
# File 'lib/citywrapper.rb', line 27 def self.configure yield(configuration) end |