Class: PostProxy::MediaPlatformError

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

Returns a new instance of MediaPlatformError.



104
105
106
107
108
109
# File 'lib/postproxy/types.rb', line 104

def initialize(**attrs)
  @error = nil
  @error_details = 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.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def error
  @error
end

#error_detailsObject

Returns the value of attribute error_details.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def error_details
  @error_details
end

#platformObject

Returns the value of attribute platform.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def platform
  @platform
end

#statusObject

Returns the value of attribute status.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def status
  @status
end