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.



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

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.



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

def hash
  @hash
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#marked_for_deletion?Boolean

Returns:

  • (Boolean)


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

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

#slo?Boolean

Returns:

  • (Boolean)


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

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