Class: Rafflesia::ObjectGcDeleteError

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#errorObject

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_idObject

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

#pathObject

Returns the value of attribute path.



14
15
16
# File 'lib/rafflesia/objects/object_gc_delete_error.rb', line 14

def path
  @path
end