Class: RailsWayback::CacheInventory::Snapshot
- Inherits:
-
Struct
- Object
- Struct
- RailsWayback::CacheInventory::Snapshot
- Defined in:
- lib/rails_wayback/cache_inventory.rb
Instance Attribute Summary collapse
-
#refs ⇒ Object
Returns the value of attribute refs.
Instance Method Summary collapse
Instance Attribute Details
#refs ⇒ Object
Returns the value of attribute refs
27 28 29 |
# File 'lib/rails_wayback/cache_inventory.rb', line 27 def refs @refs end |
Instance Method Details
#file_count ⇒ Object
36 37 38 |
# File 'lib/rails_wayback/cache_inventory.rb', line 36 def file_count refs.sum(&:file_count) end |
#ref_count ⇒ Object
28 29 30 |
# File 'lib/rails_wayback/cache_inventory.rb', line 28 def ref_count refs.size end |
#size_bytes ⇒ Object
32 33 34 |
# File 'lib/rails_wayback/cache_inventory.rb', line 32 def size_bytes refs.sum(&:size_bytes) end |