Class: PostProxy::WebhookEvents::ReactionEventData
- Defined in:
- lib/postproxy/webhook_events.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#emoji ⇒ Object
Returns the value of attribute emoji.
-
#message ⇒ Object
Returns the value of attribute message.
-
#occurred_at ⇒ Object
Returns the value of attribute occurred_at.
-
#reaction ⇒ Object
Returns the value of attribute reaction.
-
#sender_external_id ⇒ Object
Returns the value of attribute sender_external_id.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ReactionEventData
constructor
A new instance of ReactionEventData.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ ReactionEventData
Returns a new instance of ReactionEventData.
87 88 89 90 91 92 93 94 |
# File 'lib/postproxy/webhook_events.rb', line 87 def initialize(**attrs) @message = nil @reaction = nil @emoji = nil @occurred_at = nil super @message = Message.new(**@message.transform_keys(&:to_sym)) if @message.is_a?(Hash) end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
85 86 87 |
# File 'lib/postproxy/webhook_events.rb', line 85 def action @action end |
#emoji ⇒ Object
Returns the value of attribute emoji.
85 86 87 |
# File 'lib/postproxy/webhook_events.rb', line 85 def emoji @emoji end |
#message ⇒ Object
Returns the value of attribute message.
85 86 87 |
# File 'lib/postproxy/webhook_events.rb', line 85 def @message end |
#occurred_at ⇒ Object
Returns the value of attribute occurred_at.
85 86 87 |
# File 'lib/postproxy/webhook_events.rb', line 85 def occurred_at @occurred_at end |
#reaction ⇒ Object
Returns the value of attribute reaction.
85 86 87 |
# File 'lib/postproxy/webhook_events.rb', line 85 def reaction @reaction end |
#sender_external_id ⇒ Object
Returns the value of attribute sender_external_id.
85 86 87 |
# File 'lib/postproxy/webhook_events.rb', line 85 def sender_external_id @sender_external_id end |