Class: PostProxy::WebhookEvents::PostProcessedData

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) ⇒ PostProcessedData

Returns a new instance of PostProcessedData.



18
19
20
21
22
23
24
# File 'lib/postproxy/webhook_events.rb', line 18

def initialize(**attrs)
  @platforms = []
  super
  @platforms = (@platforms || []).map do |p|
    p.is_a?(PostProcessedPlatform) ? p : PostProcessedPlatform.new(**p.transform_keys(&:to_sym))
  end
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



16
17
18
# File 'lib/postproxy/webhook_events.rb', line 16

def body
  @body
end

#created_atObject

Returns the value of attribute created_at.



16
17
18
# File 'lib/postproxy/webhook_events.rb', line 16

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/postproxy/webhook_events.rb', line 16

def id
  @id
end

#platformsObject

Returns the value of attribute platforms.



16
17
18
# File 'lib/postproxy/webhook_events.rb', line 16

def platforms
  @platforms
end

#scheduled_atObject

Returns the value of attribute scheduled_at.



16
17
18
# File 'lib/postproxy/webhook_events.rb', line 16

def scheduled_at
  @scheduled_at
end

#statusObject

Returns the value of attribute status.



16
17
18
# File 'lib/postproxy/webhook_events.rb', line 16

def status
  @status
end