Class: Rpush::Daemon::QueuePayload
- Inherits:
-
Object
- Object
- Rpush::Daemon::QueuePayload
- Defined in:
- lib/rpush/daemon/queue_payload.rb
Instance Attribute Summary collapse
-
#batch ⇒ Object
readonly
Returns the value of attribute batch.
-
#notification ⇒ Object
readonly
Returns the value of attribute notification.
Instance Method Summary collapse
-
#initialize(batch, notification = nil) ⇒ QueuePayload
constructor
A new instance of QueuePayload.
Constructor Details
#initialize(batch, notification = nil) ⇒ QueuePayload
Returns a new instance of QueuePayload.
6 7 8 9 |
# File 'lib/rpush/daemon/queue_payload.rb', line 6 def initialize(batch, notification = nil) @batch = batch @notification = notification end |
Instance Attribute Details
#batch ⇒ Object (readonly)
Returns the value of attribute batch.
4 5 6 |
# File 'lib/rpush/daemon/queue_payload.rb', line 4 def batch @batch end |
#notification ⇒ Object (readonly)
Returns the value of attribute notification.
4 5 6 |
# File 'lib/rpush/daemon/queue_payload.rb', line 4 def notification @notification end |