Class: MessageQuickly::Messaging::OptinEvent
- Defined in:
- lib/message_quickly/messaging/optin_event.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Attributes inherited from Event
#entry, #recipient, #sender, #timestamp
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ OptinEvent
constructor
A new instance of OptinEvent.
- #webhook_name ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ OptinEvent
Returns a new instance of OptinEvent.
9 10 11 12 13 14 15 |
# File 'lib/message_quickly/messaging/optin_event.rb', line 9 def initialize(params = {}) if params.include? :optin @ref = params[:optin][:ref] params.delete(:optin) end super(params) end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
7 8 9 |
# File 'lib/message_quickly/messaging/optin_event.rb', line 7 def ref @ref end |
Instance Method Details
#webhook_name ⇒ Object
17 18 19 |
# File 'lib/message_quickly/messaging/optin_event.rb', line 17 def webhook_name :messaging_optins end |