Class: Feed2Gram::Cache
- Inherits:
-
Struct
- Object
- Struct
- Feed2Gram::Cache
- Defined in:
- lib/feed2gram/loads_cache.rb
Instance Attribute Summary collapse
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#posted ⇒ Object
Returns the value of attribute posted.
-
#skipped ⇒ Object
Returns the value of attribute skipped.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
Instance Attribute Details
#failed ⇒ Object
Returns the value of attribute failed
2 3 4 |
# File 'lib/feed2gram/loads_cache.rb', line 2 def failed @failed end |
#posted ⇒ Object
Returns the value of attribute posted
2 3 4 |
# File 'lib/feed2gram/loads_cache.rb', line 2 def posted @posted end |
#skipped ⇒ Object
Returns the value of attribute skipped
2 3 4 |
# File 'lib/feed2gram/loads_cache.rb', line 2 def skipped @skipped end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
2 3 4 |
# File 'lib/feed2gram/loads_cache.rb', line 2 def updated_at @updated_at end |
Instance Method Details
#as_yaml ⇒ Object
3 4 5 |
# File 'lib/feed2gram/loads_cache.rb', line 3 def as_yaml to_h.transform_keys(&:to_s).to_yaml.gsub(/^---\n/, "") end |