Class: Push::Daemon::Gcm
- Inherits:
-
Object
- Object
- Push::Daemon::Gcm
- Defined in:
- lib/push/daemon/gcm.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
- #connectiontype ⇒ Object
-
#initialize(options) ⇒ Gcm
constructor
A new instance of Gcm.
- #pushconnections ⇒ Object
- #stop ⇒ Object
- #totalconnections ⇒ Object
Constructor Details
#initialize(options) ⇒ Gcm
Returns a new instance of Gcm.
5 6 7 |
# File 'lib/push/daemon/gcm.rb', line 5 def initialize() self.configuration = end |
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
4 5 6 |
# File 'lib/push/daemon/gcm.rb', line 4 def configuration @configuration end |
Instance Method Details
#connectiontype ⇒ Object
17 18 19 |
# File 'lib/push/daemon/gcm.rb', line 17 def connectiontype GcmSupport::ConnectionGcm end |
#pushconnections ⇒ Object
9 10 11 |
# File 'lib/push/daemon/gcm.rb', line 9 def pushconnections self.configuration[:connections] end |
#stop ⇒ Object
21 |
# File 'lib/push/daemon/gcm.rb', line 21 def stop; end |
#totalconnections ⇒ Object
13 14 15 |
# File 'lib/push/daemon/gcm.rb', line 13 def totalconnections pushconnections end |