Class: SourceMonitor::Fetching::FeedFetcher::EntryProcessingResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/source_monitor/fetching/feed_fetcher.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#createdObject

Returns the value of attribute created

Returns:

  • (Object)

    the current value of created



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def created
  @created
end

#created_itemsObject

Returns the value of attribute created_items

Returns:

  • (Object)

    the current value of created_items



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def created_items
  @created_items
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def errors
  @errors
end

#failedObject

Returns the value of attribute failed

Returns:

  • (Object)

    the current value of failed



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def failed
  @failed
end

#itemsObject

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def items
  @items
end

#unchangedObject

Returns the value of attribute unchanged

Returns:

  • (Object)

    the current value of unchanged



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def unchanged
  @unchanged
end

#updatedObject

Returns the value of attribute updated

Returns:

  • (Object)

    the current value of updated



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def updated
  @updated
end

#updated_itemsObject

Returns the value of attribute updated_items

Returns:

  • (Object)

    the current value of updated_items



19
20
21
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 19

def updated_items
  @updated_items
end

Class Method Details

.emptyObject



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/source_monitor/fetching/feed_fetcher.rb', line 30

def self.empty
  new(
    created: 0,
    updated: 0,
    unchanged: 0,
    failed: 0,
    items: [],
    errors: [],
    created_items: [],
    updated_items: []
  )
end