Class: Backup::CloudIO::CloudFiles::Object
- Inherits:
-
Object
- Object
- Backup::CloudIO::CloudFiles::Object
- Defined in:
- lib/backup/cloud_io/cloud_files.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(cloud_io, data) ⇒ Object
constructor
A new instance of Object.
- #marked_for_deletion? ⇒ Boolean
- #slo? ⇒ Boolean
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
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
272 273 274 |
# File 'lib/backup/cloud_io/cloud_files.rb', line 272 def hash @hash end |
#name ⇒ Object (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
284 285 286 |
# File 'lib/backup/cloud_io/cloud_files.rb', line 284 def marked_for_deletion? !!["X-Delete-At"] end |
#slo? ⇒ Boolean
280 281 282 |
# File 'lib/backup/cloud_io/cloud_files.rb', line 280 def slo? !!["X-Static-Large-Object"] end |