Class: Backup::CloudIO::CloudFiles::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/cloud_io/cloud_files.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_io, data) ⇒ Object

Returns a new instance of Object.



275
276
277
278
279
# File 'lib/backup/cloud_io/cloud_files.rb', line 275

def initialize(cloud_io, data)
  @cloud_io = cloud_io
  @name = data['name']
  @hash = data['hash']
end

Instance Attribute Details

#hashObject (readonly)

Returns the value of attribute hash.



273
274
275
# File 'lib/backup/cloud_io/cloud_files.rb', line 273

def hash
  @hash
end

#nameObject (readonly)

Returns the value of attribute name.



273
274
275
# File 'lib/backup/cloud_io/cloud_files.rb', line 273

def name
  @name
end

Instance Method Details

#marked_for_deletion?Boolean

Returns:

  • (Boolean)


285
286
287
# File 'lib/backup/cloud_io/cloud_files.rb', line 285

def marked_for_deletion?
  !!['X-Delete-At']
end

#slo?Boolean

Returns:

  • (Boolean)


281
282
283
# File 'lib/backup/cloud_io/cloud_files.rb', line 281

def slo?
  !!['X-Static-Large-Object']
end