Class: Bsdkrun::CacheEntry
- Inherits:
-
Struct
- Object
- Struct
- Bsdkrun::CacheEntry
- Defined in:
- lib/bsdkrun/cache.rb
Overview
A stored cache entry, as cache ls reports it.
Instance Attribute Summary collapse
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#created ⇒ Object
Returns the value of attribute created.
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#key ⇒ Object
Returns the value of attribute key.
-
#path ⇒ Object
Returns the value of attribute path.
-
#size ⇒ Object
Returns the value of attribute size.
Class Method Summary collapse
Instance Attribute Details
#compression ⇒ Object
Returns the value of attribute compression
7 8 9 |
# File 'lib/bsdkrun/cache.rb', line 7 def compression @compression end |
#created ⇒ Object
Returns the value of attribute created
7 8 9 |
# File 'lib/bsdkrun/cache.rb', line 7 def created @created end |
#digest ⇒ Object
Returns the value of attribute digest
7 8 9 |
# File 'lib/bsdkrun/cache.rb', line 7 def digest @digest end |
#key ⇒ Object
Returns the value of attribute key
7 8 9 |
# File 'lib/bsdkrun/cache.rb', line 7 def key @key end |
#path ⇒ Object
Returns the value of attribute path
7 8 9 |
# File 'lib/bsdkrun/cache.rb', line 7 def path @path end |
#size ⇒ Object
Returns the value of attribute size
7 8 9 |
# File 'lib/bsdkrun/cache.rb', line 7 def size @size end |
Class Method Details
.from(row) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/bsdkrun/cache.rb', line 8 def self.from(row) new( key: row["key"].to_s, path: row["path"].to_s, compression: row["compression"].to_s, size: row["size"].to_i, created: row["created"].to_i, digest: row["digest"].to_s ) end |