Class: PostProxy::WebhookEvents::PostImportedData
- 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.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#platform_post_id ⇒ Object
Returns the value of attribute platform_post_id.
-
#posted_at ⇒ Object
Returns the value of attribute posted_at.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#public_id ⇒ Object
Returns the value of attribute public_id.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ PostImportedData
constructor
A new instance of PostImportedData.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ PostImportedData
Returns a new instance of PostImportedData.
35 36 37 38 39 |
# File 'lib/postproxy/webhook_events.rb', line 35 def initialize(**attrs) @profile = nil super @profile = ImportedProfile.new(**@profile.transform_keys(&:to_sym)) if @profile.is_a?(Hash) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def body @body end |
#created_at ⇒ Object
Returns the value of attribute created_at.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def id @id end |
#platform ⇒ Object
Returns the value of attribute platform.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def platform @platform end |
#platform_post_id ⇒ Object
Returns the value of attribute platform_post_id.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def platform_post_id @platform_post_id end |
#posted_at ⇒ Object
Returns the value of attribute posted_at.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def posted_at @posted_at end |
#profile ⇒ Object
Returns the value of attribute profile.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def profile @profile end |
#public_id ⇒ Object
Returns the value of attribute public_id.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def public_id @public_id end |
#source ⇒ Object
Returns the value of attribute source.
32 33 34 |
# File 'lib/postproxy/webhook_events.rb', line 32 def source @source end |