Class: Rafflesia::ObjectGcDeleteError
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectGcDeleteError
- Defined in:
- lib/rafflesia/objects/object_gc_delete_error.rb
Constant Summary collapse
- HASH_ATTRS =
{ error: :error, object_id: :object_id, path: :path }.freeze
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectGcDeleteError
constructor
A new instance of ObjectGcDeleteError.
Constructor Details
#initialize(json) ⇒ ObjectGcDeleteError
Returns a new instance of ObjectGcDeleteError.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/objects/object_gc_delete_error.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @error = hash[:error] @object_id = hash[:object_id] @path = hash[:path] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
14 15 16 |
# File 'lib/rafflesia/objects/object_gc_delete_error.rb', line 14 def error @error end |
#object_id ⇒ Object
Returns the value of attribute object_id.
14 15 16 |
# File 'lib/rafflesia/objects/object_gc_delete_error.rb', line 14 def object_id @object_id end |
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/rafflesia/objects/object_gc_delete_error.rb', line 14 def path @path end |