Sha256: 592b5e3827f43667c6fa734b75487633ddeeea9f11afeda4c082fa5609efeb77
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require "date" require "json" require "net/http" require "time" require "trend/client" require "trend/version" module Trend class Error < StandardError; end def self.anomalies(*args) client.anomalies(*args) end def self.forecast(*args) client.forecast(*args) end def self.url @url ||= ENV["TREND_URL"] || "https://trendapi.org" end def self.url=(url) @url = url @client = nil end # private def self.client @client ||= Client.new end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trend-0.1.0 | lib/trend.rb |