Class: AbstractNotifier::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/abstract_notifier/base.rb

Overview

Notification object contains the compiled payload to be delivered

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Notification

Returns a new instance of Notification.



55
56
57
# File 'lib/abstract_notifier/base.rb', line 55

def initialize(payload)
  @payload = payload
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



53
54
55
# File 'lib/abstract_notifier/base.rb', line 53

def payload
  @payload
end