lib/trend.rb in trend-0.1.0 vs lib/trend.rb in trend-0.1.1

- old
+ new

@@ -15,15 +15,28 @@ def self.forecast(*args) client.forecast(*args) end + def self.correlation(*args) + client.correlation(*args) + end + def self.url @url ||= ENV["TREND_URL"] || "https://trendapi.org" end def self.url=(url) @url = url + @client = nil + end + + def self.api_key + @api_key ||= ENV["TREND_API_KEY"] + end + + def self.api_key=(api_key) + @api_key = api_key @client = nil end # private def self.client