limores_hopstop 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
|