Class: PostProxy::WebhookEvents::MessageEventData

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/webhook_events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

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

#messageObject

Returns the value of attribute message.



75
76
77
# File 'lib/postproxy/webhook_events.rb', line 75

def message
  @message
end