Class: PostProxy::WebhookEvents::PlatformPostData

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

#errorObject

Returns the value of attribute error.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def error
  @error
end

#error_detailsObject

Returns the value of attribute error_details.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def error_details
  @error_details
end

#idObject

Returns the value of attribute id.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def id
  @id
end

#insightsObject

Returns the value of attribute insights.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def insights
  @insights
end

#platformObject

Returns the value of attribute platform.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def platform
  @platform
end

#platform_idObject

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_idObject

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_idObject

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_nameObject

Returns the value of attribute profile_name.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def profile_name
  @profile_name
end

#statusObject

Returns the value of attribute status.



43
44
45
# File 'lib/postproxy/webhook_events.rb', line 43

def status
  @status
end