Class: PostProxy::WebhookEvents::MessageEventData
- Defined in:
- lib/postproxy/webhook_events.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ MessageEventData
constructor
A new instance of MessageEventData.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ MessageEventData
Returns a new instance of MessageEventData.
77 78 79 80 81 |
# File 'lib/postproxy/webhook_events.rb', line 77 def initialize(**attrs) @message = nil super @message = Message.new(**@message.transform_keys(&:to_sym)) if @message.is_a?(Hash) end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
75 76 77 |
# File 'lib/postproxy/webhook_events.rb', line 75 def @message end |