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

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



18
19
20
# File 'lib/citywrapper.rb', line 18

def api_key
  @api_key
end

.configurationObject



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

Yields:



27
28
29
# File 'lib/citywrapper.rb', line 27

def self.configure
  yield(configuration)
end