Class: Nuge::Clients::Grocer
- Inherits:
-
Nuge::Client
- Object
- Nuge::Client
- Nuge::Clients::Grocer
- Defined in:
- lib/nuge/clients/grocer.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Grocer
constructor
A new instance of Grocer.
- #push(ids, message) ⇒ Object
- #pusher ⇒ Object
Methods inherited from Nuge::Client
Constructor Details
#initialize(options = {}) ⇒ Grocer
Returns a new instance of Grocer.
9 10 11 |
# File 'lib/nuge/clients/grocer.rb', line 9 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/nuge/clients/grocer.rb', line 7 def @options end |
Instance Method Details
#push(ids, message) ⇒ Object
17 18 19 20 21 |
# File 'lib/nuge/clients/grocer.rb', line 17 def push(ids, ) notifications(ids, ).each do |notification| pusher.push(notification) end end |
#pusher ⇒ Object
13 14 15 |
# File 'lib/nuge/clients/grocer.rb', line 13 def pusher @pusher ||= ::Grocer.pusher() end |