Sha256: 3d03b4ebb42d57dc6e78ada83f958c23d2beba5807072cd0c6fabd73100adfba
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
require "singleton" require "rsqoot/helper" require "rsqoot/merchant" require "rsqoot/category" require "rsqoot/provider" require "rsqoot/commission" require "rsqoot/click" require "rsqoot/deal" require "rsqoot/request" require "rsqoot/logger" module RSqoot class Client include Singleton include Helper include Category include Click include Commission include Deal include Merchant include Provider include Request include Logger attr_accessor :public_api_key, :private_api_key, :base_api_url, :authentication_method, :read_timeout, :query_options, :expired_in, :sqoot_query_uri def initialize(options={}) @public_api_key = options[:public_api_key] || RSqoot.public_api_key @private_api_key = options[:private_api_key] || RSqoot.private_api_key @base_api_url = options[:base_api_url] || RSqoot.base_api_url @authentication_method = options[:authentication_method] || RSqoot.authentication_method @read_timeout = options[:read_timeout] || RSqoot.read_timeout @expired_in = options[:expired_in] || RSqoot.expired_in end def reload!(options={}) initialize(options) self.class.instance end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsqoot-0.5.3 | lib/rsqoot/client.rb |