lib/rsqoot/client.rb in rsqoot-0.3.2 vs lib/rsqoot/client.rb in rsqoot-0.4.0

- old
+ new

@@ -16,17 +16,18 @@ include Deal include Merchant include Provider include Request - attr_reader :public_api_key, :private_api_key, :base_api_url, :authentication_method, :read_timeout + attr_reader :public_api_key, :private_api_key, :base_api_url, :authentication_method, :read_timeout, :query_options, :expired_in 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 + @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 + @read_timeout = options[:read_timeout] || RSqoot.read_timeout + @expired_in = options[:expired_in] || RSqoot.expired_in end end end