Class: MessageQuickly::Messaging::MessageEvent

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

Instance Attribute Summary collapse

Attributes inherited from Event

#entry, #recipient, #sender, #timestamp

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ MessageEvent

Returns a new instance of MessageEvent.



9
10
11
12
# File 'lib/message_quickly/messaging/message_event.rb', line 9

def initialize(params = {})
  initialize_params(params['message'])
  super(params)
end

Instance Attribute Details

#attachmentsObject (readonly)

Returns the value of attribute attachments.



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

def attachments
  @attachments
end

#midObject (readonly)

Returns the value of attribute mid.



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

def mid
  @mid
end

#seqObject (readonly)

Returns the value of attribute seq.



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

def seq
  @seq
end

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#webhook_nameObject



14
15
16
# File 'lib/message_quickly/messaging/message_event.rb', line 14

def webhook_name
  :messages
end