Class: PostProxy::WebhookEvents::PlatformPostData
- Defined in:
- lib/postproxy/webhook_events.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_details ⇒ Object
Returns the value of attribute error_details.
-
#id ⇒ Object
Returns the value of attribute id.
-
#insights ⇒ Object
Returns the value of attribute insights.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#platform_id ⇒ Object
Returns the value of attribute platform_id.
-
#post_id ⇒ Object
Returns the value of attribute post_id.
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
-
#profile_name ⇒ Object
Returns the value of attribute profile_name.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ PlatformPostData
constructor
A new instance of PlatformPostData.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ PlatformPostData
Returns a new instance of PlatformPostData.
46 47 48 49 50 51 |
# File 'lib/postproxy/webhook_events.rb', line 46 def initialize(**attrs) @error_details = nil @insights = nil super @error_details = ErrorDetails.new(**@error_details.transform_keys(&:to_sym)) if @error_details.is_a?(Hash) end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def error @error end |
#error_details ⇒ Object
Returns the value of attribute error_details.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def error_details @error_details end |
#id ⇒ Object
Returns the value of attribute id.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def id @id end |
#insights ⇒ Object
Returns the value of attribute insights.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def insights @insights end |
#platform ⇒ Object
Returns the value of attribute platform.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def platform @platform end |
#platform_id ⇒ Object
Returns the value of attribute platform_id.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def platform_id @platform_id end |
#post_id ⇒ Object
Returns the value of attribute post_id.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def post_id @post_id end |
#profile_id ⇒ Object
Returns the value of attribute profile_id.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def profile_id @profile_id end |
#profile_name ⇒ Object
Returns the value of attribute profile_name.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def profile_name @profile_name end |
#status ⇒ Object
Returns the value of attribute status.
43 44 45 |
# File 'lib/postproxy/webhook_events.rb', line 43 def status @status end |