Class: ColdStorage::Archiver::Result
- Inherits:
-
Struct
- Object
- Struct
- ColdStorage::Archiver::Result
- Defined in:
- lib/cold_storage/archiver.rb
Overview
Outcome of one call.
Instance Attribute Summary collapse
-
#archived ⇒ Object
Returns the value of attribute archived.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#skipped ⇒ Object
Returns the value of attribute skipped.
Instance Method Summary collapse
Instance Attribute Details
#archived ⇒ Object
Returns the value of attribute archived
20 21 22 |
# File 'lib/cold_storage/archiver.rb', line 20 def archived @archived end |
#deleted ⇒ Object
Returns the value of attribute deleted
20 21 22 |
# File 'lib/cold_storage/archiver.rb', line 20 def deleted @deleted end |
#dry_run ⇒ Object
Returns the value of attribute dry_run
20 21 22 |
# File 'lib/cold_storage/archiver.rb', line 20 def dry_run @dry_run end |
#model_name ⇒ Object
Returns the value of attribute model_name
20 21 22 |
# File 'lib/cold_storage/archiver.rb', line 20 def model_name @model_name end |
#reason ⇒ Object
Returns the value of attribute reason
20 21 22 |
# File 'lib/cold_storage/archiver.rb', line 20 def reason @reason end |
#skipped ⇒ Object
Returns the value of attribute skipped
20 21 22 |
# File 'lib/cold_storage/archiver.rb', line 20 def skipped @skipped end |
Instance Method Details
#skipped? ⇒ Boolean
21 22 23 |
# File 'lib/cold_storage/archiver.rb', line 21 def skipped? skipped end |
#to_s ⇒ Object
25 26 27 28 29 |
# File 'lib/cold_storage/archiver.rb', line 25 def to_s return "#{model_name}: skipped (#{reason})" if skipped? "#{model_name}: archived #{archived}, deleted #{deleted}#{' [dry run]' if dry_run}" end |