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.
-
#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.
69 70 71 72 73 74 75 76 77 |
# File 'lib/postproxy/types.rb', line 69 def initialize(**attrs) @params = nil @error = nil @attempted_at = nil @insights = nil super @attempted_at = parse_time(@attempted_at) @insights = Insights.new(**@insights) if @insights.is_a?(Hash) end |
Instance Attribute Details
#attempted_at ⇒ Object
Returns the value of attribute attempted_at.
67 68 69 |
# File 'lib/postproxy/types.rb', line 67 def attempted_at @attempted_at end |
#error ⇒ Object
Returns the value of attribute error.
67 68 69 |
# File 'lib/postproxy/types.rb', line 67 def error @error end |
#insights ⇒ Object
Returns the value of attribute insights.
67 68 69 |
# File 'lib/postproxy/types.rb', line 67 def insights @insights end |
#params ⇒ Object
Returns the value of attribute params.
67 68 69 |
# File 'lib/postproxy/types.rb', line 67 def params @params end |
#platform ⇒ Object
Returns the value of attribute platform.
67 68 69 |
# File 'lib/postproxy/types.rb', line 67 def platform @platform end |
#status ⇒ Object
Returns the value of attribute status.
67 68 69 |
# File 'lib/postproxy/types.rb', line 67 def status @status end |