Class: Tebako::CacheCatalog::Entry
- Inherits:
-
Struct
- Object
- Struct
- Tebako::CacheCatalog::Entry
- Defined in:
- lib/tebako/cache_catalog.rb
Instance Attribute Summary collapse
-
#byte_size ⇒ Object
Returns the value of attribute byte_size.
-
#key ⇒ Object
Returns the value of attribute key.
-
#last_used ⇒ Object
Returns the value of attribute last_used.
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
Instance Attribute Details
#byte_size ⇒ Object
Returns the value of attribute byte_size
20 21 22 |
# File 'lib/tebako/cache_catalog.rb', line 20 def byte_size @byte_size end |
#key ⇒ Object
Returns the value of attribute key
20 21 22 |
# File 'lib/tebako/cache_catalog.rb', line 20 def key @key end |
#last_used ⇒ Object
Returns the value of attribute last_used
20 21 22 |
# File 'lib/tebako/cache_catalog.rb', line 20 def last_used @last_used end |
#path ⇒ Object
Returns the value of attribute path
20 21 22 |
# File 'lib/tebako/cache_catalog.rb', line 20 def path @path end |
#type ⇒ Object
Returns the value of attribute type
20 21 22 |
# File 'lib/tebako/cache_catalog.rb', line 20 def type @type end |
#valid ⇒ Object
Returns the value of attribute valid
20 21 22 |
# File 'lib/tebako/cache_catalog.rb', line 20 def valid @valid end |
Instance Method Details
#to_h ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/tebako/cache_catalog.rb', line 21 def to_h { "type" => type, "key" => key, "path" => path, "size" => byte_size, "last_used" => last_used.utc.iso8601, "valid" => valid } end |