Class: Rpush::Daemon::QueuePayload

Inherits:
Object
  • Object
show all
Defined in:
lib/rpush/daemon/queue_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#batchObject (readonly)

Returns the value of attribute batch.



4
5
6
# File 'lib/rpush/daemon/queue_payload.rb', line 4

def batch
  @batch
end

#notificationObject (readonly)

Returns the value of attribute notification.



4
5
6
# File 'lib/rpush/daemon/queue_payload.rb', line 4

def notification
  @notification
end