lib/keen/client.rb in keen-0.8.7 vs lib/keen/client.rb in keen-0.8.8

- 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, :proxy_url, :proxy_type + attr_accessor :project_id, :write_key, :read_key, :master_key, :api_url, :proxy_url, :proxy_type, :read_timeout CONFIG = { :api_url => "https://api.keen.io", :api_version => "3.0", :api_headers => lambda { |authorization, sync_or_async| @@ -47,9 +47,11 @@ :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) + + self.read_timeout = options[:read_timeout].to_f unless options[:read_timeout].nil? end private def process_response(status_code, response_body)