limores_hopstop 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/app_id.rb +6 -4
- data/lib/hopstop.rb +2 -2
- metadata +1 -1
data/lib/app_id.rb
CHANGED
data/lib/hopstop.rb
CHANGED
|
@@ -47,7 +47,7 @@ module Limores
|
|
|
47
47
|
private
|
|
48
48
|
|
|
49
49
|
def self.fetch_cities
|
|
50
|
-
url = "http://www.hopstop.com/ws/GetCities?licenseKey=#{
|
|
50
|
+
url = "http://www.hopstop.com/ws/GetCities?licenseKey=#{Limores::Mashups::Hopstop::APP_ID}"
|
|
51
51
|
|
|
52
52
|
begin
|
|
53
53
|
xml = open(URI.encode(url)).read
|
|
@@ -147,7 +147,7 @@ module Limores
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
def self.fetch_route(params={})
|
|
150
|
-
url = "http://www.hopstop.com/ws/GetRoute?licenseKey=#{
|
|
150
|
+
url = "http://www.hopstop.com/ws/GetRoute?licenseKey=#{Limores::Mashups::Hopstop::APP_ID}"
|
|
151
151
|
params.each do |param, value|
|
|
152
152
|
url += "&#{param.to_s}=#{value}"
|
|
153
153
|
end
|