Class: MessageQuickly::Messaging::AccountLinkEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/message_quickly/messaging/account_link_event.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#entry, #recipient, #sender, #timestamp

Instance Method Summary collapse

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? :
    @status = params[:account_linking][:status]
    @authorization_code = params[:account_linking][:authorization_code]
    params.delete(:account_linking)
  end

  super(params)

end

Instance Attribute Details

#authorization_codeObject (readonly)

Returns the value of attribute authorization_code.



7
8
9
# File 'lib/message_quickly/messaging/account_link_event.rb', line 7

def authorization_code
  @authorization_code
end

#statusObject (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_nameObject



21
22
23
# File 'lib/message_quickly/messaging/account_link_event.rb', line 21

def webhook_name
  :account_linking
end