Class: RailsWayback::CacheInventory::PruneResult
- Inherits:
-
Struct
- Object
- Struct
- RailsWayback::CacheInventory::PruneResult
- Defined in:
- lib/rails_wayback/cache_inventory.rb
Instance Attribute Summary collapse
-
#limits_satisfied ⇒ Object
Returns the value of attribute limits_satisfied.
-
#removed ⇒ Object
Returns the value of attribute removed.
-
#snapshot ⇒ Object
Returns the value of attribute snapshot.
Instance Method Summary collapse
Instance Attribute Details
#limits_satisfied ⇒ Object
Returns the value of attribute limits_satisfied
41 42 43 |
# File 'lib/rails_wayback/cache_inventory.rb', line 41 def limits_satisfied @limits_satisfied end |
#removed ⇒ Object
Returns the value of attribute removed
41 42 43 |
# File 'lib/rails_wayback/cache_inventory.rb', line 41 def removed @removed end |
#snapshot ⇒ Object
Returns the value of attribute snapshot
41 42 43 |
# File 'lib/rails_wayback/cache_inventory.rb', line 41 def snapshot @snapshot end |
Instance Method Details
#limits_satisfied? ⇒ Boolean
46 47 48 |
# File 'lib/rails_wayback/cache_inventory.rb', line 46 def limits_satisfied? limits_satisfied end |
#removed_size_bytes ⇒ Object
42 43 44 |
# File 'lib/rails_wayback/cache_inventory.rb', line 42 def removed_size_bytes removed.sum(&:size_bytes) end |