Class: ApphoshiesClient::DeviceToken

Inherits:
Base
  • Object
show all
Defined in:
lib/apphoshies_client/device_token.rb

Class Method Summary collapse

Methods inherited from Base

all, find_by_datasource, find_one, get, reload_http_headers

Class Method Details

.find_by_application_client_key(application_client_key, options = {}) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/apphoshies_client/device_token.rb', line 7

def self.find_by_application_client_key(application_client_key, options = {})
  default_options = {:limit => 1, :application_client_key => application_client_key}
  unless application_client_key.blank?
    get(:all, default_options.merge(options))
  else
    raise ApphoshiesClient::MissingApplicationClientKeyException
  end
end