Class: Feed2Gram::Cache

Inherits:
Struct
  • Object
show all
Defined in:
lib/feed2gram/loads_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#failedObject

Returns the value of attribute failed

Returns:

  • (Object)

    the current value of failed



2
3
4
# File 'lib/feed2gram/loads_cache.rb', line 2

def failed
  @failed
end

#postedObject

Returns the value of attribute posted

Returns:

  • (Object)

    the current value of posted



2
3
4
# File 'lib/feed2gram/loads_cache.rb', line 2

def posted
  @posted
end

#skippedObject

Returns the value of attribute skipped

Returns:

  • (Object)

    the current value of skipped



2
3
4
# File 'lib/feed2gram/loads_cache.rb', line 2

def skipped
  @skipped
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



2
3
4
# File 'lib/feed2gram/loads_cache.rb', line 2

def updated_at
  @updated_at
end

Instance Method Details

#as_yamlObject



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