Class: RailsWayback::CacheInventory::PruneResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_wayback/cache_inventory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#limits_satisfied ⇒ Object

Returns the value of attribute limits_satisfied

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of snapshot



41
42
43
# File 'lib/rails_wayback/cache_inventory.rb', line 41

def snapshot
  @snapshot
end

Instance Method Details

#limits_satisfied? ⇒ Boolean

Returns:

  • (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