module Pigeon

Constants

VERSION

Public Class Methods

add_contact(uid, attrs = {}) click to toggle source
# File lib/pigeon-ruby.rb, line 26
def self.add_contact(uid, attrs = {})
  @clients[:default].add_contact(uid, attrs)
end
configure(client_name = :default) { |config = config| ... } click to toggle source
# File lib/pigeon-ruby.rb, line 8
def self.configure(client_name = :default)
  yield config = Pigeon::Config.new

  @clients[client_name] = Pigeon::Client.new(config)
end
deliver(message_identifier, attrs = {}) click to toggle source
# File lib/pigeon-ruby.rb, line 14
def self.deliver(message_identifier, attrs = {})
  @clients[:default].deliver(message_identifier, attrs)
end
generate_token(uid) click to toggle source
# File lib/pigeon-ruby.rb, line 30
def self.generate_token(uid)
  @clients[:default].generate_token(uid)
end
identify(attrs = {}) click to toggle source
# File lib/pigeon-ruby.rb, line 22
def self.identify(attrs = {})
  @clients[:default].identify(attrs)
end
track(attrs = {}) click to toggle source
# File lib/pigeon-ruby.rb, line 18
def self.track(attrs = {})
  @clients[:default].track(attrs)
end