lib/movlog/skyscanner_api.rb in movlog-0.2.12 vs lib/movlog/skyscanner_api.rb in movlog-0.3.0
- old
+ new
@@ -22,13 +22,13 @@
def self.routes_info(data)
skyscanner_routes_response = HTTP.get(
route_info_url(data),
params: {
- apiKey: config['api_key']
+ apiKey: config[:api_key]
}
)
- JSON.load(skyscanner_routes_response.to_s)
+ JSON.parse(skyscanner_routes_response.to_s)
end
private
def self.route_info_url(data)