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