Class: Messenger::Elements::SenderAction

Inherits:
Object
  • Object
show all
Defined in:
lib/messenger/components/elements/sender_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender_action:) ⇒ SenderAction

Returns a new instance of SenderAction.



6
7
8
# File 'lib/messenger/components/elements/sender_action.rb', line 6

def initialize(sender_action:)
  @sender_action  = sender_action
end

Instance Attribute Details

#sender_actionObject

Returns the value of attribute sender_action.



4
5
6
# File 'lib/messenger/components/elements/sender_action.rb', line 4

def sender_action
  @sender_action
end

Instance Method Details

#buildObject



10
11
12
# File 'lib/messenger/components/elements/sender_action.rb', line 10

def build
  { 'sender_action' => @sender_action }
end