Class: SpecialDelivery::BaseEvent
- Inherits:
-
Object
- Object
- SpecialDelivery::BaseEvent
- Defined in:
- lib/special_delivery/base_event.rb
Direct Known Subclasses
BounceEvent, ClickEvent, ComplaintEvent, DeliveryEvent, DropEvent, OpenEvent, UnsubscribeEvent
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ BaseEvent
constructor
A new instance of BaseEvent.
- #issue_callback ⇒ Object
Constructor Details
#initialize(params) ⇒ BaseEvent
Returns a new instance of BaseEvent.
5 6 7 |
# File 'lib/special_delivery/base_event.rb', line 5 def initialize(params) @params = params || {} end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/special_delivery/base_event.rb', line 3 def params @params end |
Instance Method Details
#issue_callback ⇒ Object
9 10 11 |
# File 'lib/special_delivery/base_event.rb', line 9 def issue_callback delivery.callback(callback_method) end |