lib/keen/client.rb in keen-1.0.0 vs lib/keen/client.rb in keen-1.1.0

- old
+ new

@@ -1,11 +1,10 @@ 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 'keen/version' require 'openssl' require 'multi_json' require 'base64' require 'cgi' @@ -60,11 +59,13 @@ def saved_queries @saved_queries ||= SavedQueries.new(self) end - private + def access_keys + @access_keys ||= AccessKeys.new(self) + end def process_response(status_code, response_body) case status_code.to_i when 200..201 begin @@ -99,9 +100,11 @@ end def ensure_read_key! raise ConfigurationError, "Read Key must be set for this operation" unless self.read_key end + + private def api_event_collection_resource_path(event_collection) encoded_collection_name = Addressable::URI.encode_component(event_collection.to_s) encoded_collection_name.gsub! '/', '%2F' "/#{api_version}/projects/#{project_id}/events/#{encoded_collection_name}"