lib/keen/client.rb in keen-0.7.6 vs lib/keen/client.rb in keen-0.7.7

- old
+ new

@@ -13,11 +13,11 @@ class Client include Keen::Client::PublishingMethods include Keen::Client::QueryingMethods include Keen::Client::MaintenanceMethods - attr_accessor :project_id, :write_key, :read_key, :master_key, :api_url + attr_accessor :project_id, :write_key, :read_key, :master_key, :api_url, :proxy_url, :proxy_type CONFIG = { :api_url => "https://api.keen.io", :api_version => "3.0", :api_headers => lambda { |authorization, sync_or_async| @@ -45,9 +45,11 @@ self.project_id, self.write_key, self.read_key, self.master_key = options.values_at( :project_id, :write_key, :read_key, :master_key) self.api_url = options[:api_url] || CONFIG[:api_url] + + self.proxy_url, self.proxy_type = options.values_at(:proxy_url, :proxy_type) end private def process_response(status_code, response_body)