Class: PostProxy::PlatformResult

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

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_atObject

Returns the value of attribute attempted_at.



67
68
69
# File 'lib/postproxy/types.rb', line 67

def attempted_at
  @attempted_at
end

#errorObject

Returns the value of attribute error.



67
68
69
# File 'lib/postproxy/types.rb', line 67

def error
  @error
end

#insightsObject

Returns the value of attribute insights.



67
68
69
# File 'lib/postproxy/types.rb', line 67

def insights
  @insights
end

#paramsObject

Returns the value of attribute params.



67
68
69
# File 'lib/postproxy/types.rb', line 67

def params
  @params
end

#platformObject

Returns the value of attribute platform.



67
68
69
# File 'lib/postproxy/types.rb', line 67

def platform
  @platform
end

#statusObject

Returns the value of attribute status.



67
68
69
# File 'lib/postproxy/types.rb', line 67

def status
  @status
end