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.
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
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
273 274 275 |
# File 'lib/backup/cloud_io/cloud_files.rb', line 273 def hash @hash end |
#name ⇒ Object (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
285 286 287 |
# File 'lib/backup/cloud_io/cloud_files.rb', line 285 def marked_for_deletion? !!['X-Delete-At'] end |
#slo? ⇒ Boolean
281 282 283 |
# File 'lib/backup/cloud_io/cloud_files.rb', line 281 def slo? !!['X-Static-Large-Object'] end |