Class: AbstractNotifier::Notification
- Inherits:
-
Object
- Object
- AbstractNotifier::Notification
- Defined in:
- lib/abstract_notifier/base.rb
Overview
Notification object contains the compiled payload to be delivered
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(payload) ⇒ Notification
constructor
A new instance of Notification.
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
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
53 54 55 |
# File 'lib/abstract_notifier/base.rb', line 53 def payload @payload end |