Class: PostProxy::MediaPlatformError
- Defined in:
- lib/postproxy/types.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_details ⇒ Object
Returns the value of attribute error_details.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ MediaPlatformError
constructor
A new instance of MediaPlatformError.
Methods inherited from Model
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
#error ⇒ Object
Returns the value of attribute error.
102 103 104 |
# File 'lib/postproxy/types.rb', line 102 def error @error end |
#error_details ⇒ Object
Returns the value of attribute error_details.
102 103 104 |
# File 'lib/postproxy/types.rb', line 102 def error_details @error_details end |
#platform ⇒ Object
Returns the value of attribute platform.
102 103 104 |
# File 'lib/postproxy/types.rb', line 102 def platform @platform end |
#status ⇒ Object
Returns the value of attribute status.
102 103 104 |
# File 'lib/postproxy/types.rb', line 102 def status @status end |