lib/amee/session.rb in hookercookerman-amee-0.2.0 vs lib/amee/session.rb in hookercookerman-amee-0.2.1
- old
+ new
@@ -6,10 +6,11 @@
class UnAuthorized < AmeeError; end
class NotAuthenticated < AmeeError; end
class PermissionDenied < AmeeError; end
class NotFound < AmeeError; end
class ServerNotFound < AmeeError; end
+ class MissingParameterOrDuplicateError < AmeeError; end
class UnknownError < AmeeError; end
attr_accessor :auth_token, :cache, :service
def self.create(username = nil, password = nil)
username ||= Amee::Config[:username]
@@ -110,10 +111,10 @@
end
end
# @return [Amee::DataApi::DrillDown]
def drill(path, options = {})
- api_call(:get, "data.drill", "#{path}/drill", :query => options[:selections]) do |response|
+ api_call(:get, "data.drill", "#{path}/drill", options) do |response|
Amee::DataApi::DrillDown.from_hash(response, self)
end
end
# @return [Amee::DataApi::DataItem]
\ No newline at end of file