Module: EpnsClient

Defined in:
lib/epns_client.rb,
lib/epns_client/version.rb

Defined Under Namespace

Classes: Client, Connection, EpnsClientError

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.connect(api_key, registration_id, &blk) ⇒ Object



14
15
16
# File 'lib/epns_client.rb', line 14

def self.connect(api_key, registration_id, &blk)
  ::EpnsClient::Client.new(Connection.builder(api_key, registration_id), blk)
end

.register(api_key) ⇒ Object



18
19
20
# File 'lib/epns_client.rb', line 18

def self.register(api_key)
  ::EpnsClient::Connection.register(api_key)
end

.send(ids, api_key, options = {}) ⇒ Object



22
23
24
# File 'lib/epns_client.rb', line 22

def self.send(ids, api_key, options={})
  ::EpnsClient::Connection.send_notification(ids, api_key, options)
end