Module: Pigeon
- Defined in:
- lib/pigeon-ruby.rb,
lib/pigeon-ruby/client.rb,
lib/pigeon-ruby/config.rb,
lib/pigeon-ruby/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.6.5'
Class Method Summary collapse
- .add_contact(uid, attrs = {}) ⇒ Object
- .configure(client_name = :default) {|config = Pigeon::Config.new| ... } ⇒ Object
- .deliver(message_identifier, attrs = {}) ⇒ Object
- .generate_token(uid) ⇒ Object
- .identify(attrs = {}) ⇒ Object
- .track(attrs = {}) ⇒ Object
Class Method Details
.add_contact(uid, attrs = {}) ⇒ Object
26 27 28 |
# 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 = Pigeon::Config.new| ... } ⇒ Object
8 9 10 11 12 |
# 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 = {}) ⇒ Object
14 15 16 |
# File 'lib/pigeon-ruby.rb', line 14 def self.deliver(, attrs = {}) @clients[:default].deliver(, attrs) end |
.generate_token(uid) ⇒ Object
30 31 32 |
# File 'lib/pigeon-ruby.rb', line 30 def self.generate_token(uid) @clients[:default].generate_token(uid) end |
.identify(attrs = {}) ⇒ Object
22 23 24 |
# File 'lib/pigeon-ruby.rb', line 22 def self.identify(attrs = {}) @clients[:default].identify(attrs) end |
.track(attrs = {}) ⇒ Object
18 19 20 |
# File 'lib/pigeon-ruby.rb', line 18 def self.track(attrs = {}) @clients[:default].track(attrs) end |