Sha256: 858980fa59c0963c586a6c7bf199de482c485711beb7b3b7d0696109f08f0457
Contents?: true
Size: 443 Bytes
Versions: 3
Compression:
Stored size: 443 Bytes
Contents
require_relative 'query' module Barometer module WeatherService class ForecastIo class Api < Utils::Api def initialize(query, api_code) @query = ForecastIo::Query.new(query) @api_code = api_code end def url "https://api.forecast.io/forecast/#{@api_code}/#{@query.to_param}" end def params @query.units_param end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems