Class: Messenger::Elements::SenderAction
- Inherits:
-
Object
- Object
- Messenger::Elements::SenderAction
- Defined in:
- lib/messenger/components/elements/sender_action.rb
Instance Attribute Summary collapse
-
#sender_action ⇒ Object
Returns the value of attribute sender_action.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(sender_action:) ⇒ SenderAction
constructor
A new instance of SenderAction.
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_action ⇒ Object
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
#build ⇒ Object
10 11 12 |
# File 'lib/messenger/components/elements/sender_action.rb', line 10 def build { 'sender_action' => @sender_action } end |