lib/keen/client.rb in keen-0.9.3 vs lib/keen/client.rb in keen-0.9.4

- old
+ new

@@ -1,10 +1,11 @@ require 'keen/http' require 'keen/version' require 'keen/client/publishing_methods' require 'keen/client/querying_methods' require 'keen/client/maintenance_methods' +require 'keen/client/saved_queries' require 'openssl' require 'multi_json' require 'base64' require 'cgi' require 'addressable/uri' @@ -49,9 +50,13 @@ 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 + + def saved_queries + @saved_queries ||= SavedQueries.new(self) end private def process_response(status_code, response_body)