Class: Cws3chk::Store
- Inherits:
-
Struct
- Object
- Struct
- Cws3chk::Store
- Includes:
- Redis
- Defined in:
- lib/cws3chk/store.rb
Instance Attribute Summary collapse
-
#mounted_column ⇒ Object
Returns the value of attribute mounted_column.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #store_headers(headers) ⇒ Object
-
#store_missing_asset ⇒ Object
TODO redis or stdout > config.
Methods included from Redis
Instance Attribute Details
#mounted_column ⇒ Object
Returns the value of attribute mounted_column
3 4 5 |
# File 'lib/cws3chk/store.rb', line 3 def mounted_column @mounted_column end |
#resource ⇒ Object
Returns the value of attribute resource
3 4 5 |
# File 'lib/cws3chk/store.rb', line 3 def resource @resource end |
#version ⇒ Object
Returns the value of attribute version
3 4 5 |
# File 'lib/cws3chk/store.rb', line 3 def version @version end |
Instance Method Details
#store_headers(headers) ⇒ Object
11 12 13 14 |
# File 'lib/cws3chk/store.rb', line 11 def store_headers headers redis.sadd 'Cws3chk::metadata', (base + [headers['content-length']]).to_json end |
#store_missing_asset ⇒ Object
TODO redis or stdout > config
7 8 9 |
# File 'lib/cws3chk/store.rb', line 7 def store_missing_asset redis.sadd 'Cws3chk::missing', base.to_json end |