Class: PostProxy::WebhookEvents::PostProcessedData
- Defined in:
- lib/postproxy/webhook_events.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#platforms ⇒ Object
Returns the value of attribute platforms.
-
#scheduled_at ⇒ Object
Returns the value of attribute scheduled_at.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ PostProcessedData
constructor
A new instance of PostProcessedData.
Methods inherited from Model
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
#body ⇒ Object
Returns the value of attribute body.
16 17 18 |
# File 'lib/postproxy/webhook_events.rb', line 16 def body @body end |
#created_at ⇒ Object
Returns the value of attribute created_at.
16 17 18 |
# File 'lib/postproxy/webhook_events.rb', line 16 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/postproxy/webhook_events.rb', line 16 def id @id end |
#platforms ⇒ Object
Returns the value of attribute platforms.
16 17 18 |
# File 'lib/postproxy/webhook_events.rb', line 16 def platforms @platforms end |
#scheduled_at ⇒ Object
Returns the value of attribute scheduled_at.
16 17 18 |
# File 'lib/postproxy/webhook_events.rb', line 16 def scheduled_at @scheduled_at end |
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/postproxy/webhook_events.rb', line 16 def status @status end |