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.



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_atObject

Returns the value of attribute attempted_at.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def attempted_at
  @attempted_at
end

#errorObject

Returns the value of attribute error.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def error
  @error
end

#error_detailsObject

Returns the value of attribute error_details.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def error_details
  @error_details
end

#insightsObject

Returns the value of attribute insights.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def insights
  @insights
end

#paramsObject

Returns the value of attribute params.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def params
  @params
end

#platformObject

Returns the value of attribute platform.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def platform
  @platform
end

#statusObject

Returns the value of attribute status.



79
80
81
# File 'lib/postproxy/types.rb', line 79

def status
  @status
end