Class: PostProxy::PlatformResult
Instance Attribute Summary collapse
-
#attempted_at ⇒ Object
Returns the value of attribute attempted_at.
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_details ⇒ Object
Returns the value of attribute error_details.
-
#insights ⇒ Object
Returns the value of attribute insights.
-
#params ⇒ Object
Returns the value of attribute params.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ PlatformResult
constructor
A new instance of PlatformResult.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ PlatformResult
Returns a new instance of PlatformResult.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/postproxy/types.rb', line 81 def initialize(**attrs) @params = nil @error = nil @error_details = nil @attempted_at = nil @insights = nil super @attempted_at = parse_time(@attempted_at) @insights = Insights.new(**@insights) if @insights.is_a?(Hash) @error_details = ErrorDetails.new(**@error_details.transform_keys(&:to_sym)) if @error_details.is_a?(Hash) end |
Instance Attribute Details
#attempted_at ⇒ Object
Returns the value of attribute attempted_at.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def attempted_at @attempted_at end |
#error ⇒ Object
Returns the value of attribute error.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def error @error end |
#error_details ⇒ Object
Returns the value of attribute error_details.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def error_details @error_details end |
#insights ⇒ Object
Returns the value of attribute insights.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def insights @insights end |
#params ⇒ Object
Returns the value of attribute params.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def params @params end |
#platform ⇒ Object
Returns the value of attribute platform.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def platform @platform end |
#status ⇒ Object
Returns the value of attribute status.
79 80 81 |
# File 'lib/postproxy/types.rb', line 79 def status @status end |