Class: Jiggler::BaseFetcher

Inherits:
Object
  • Object
show all
Includes:
Support::Helper
Defined in:
lib/jiggler/base_fetcher.rb

Direct Known Subclasses

AtLeastOnce::Fetcher, AtMostOnce::Fetcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::Helper

#log_error, #log_error_short, #logger, #safe_async, #scan_all, #tid

Constructor Details

#initialize(config, collection) ⇒ BaseFetcher

Returns a new instance of BaseFetcher.



9
10
11
12
# File 'lib/jiggler/base_fetcher.rb', line 9

def initialize(config, collection)
  @config = config
  @collection = collection
end

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



7
8
9
# File 'lib/jiggler/base_fetcher.rb', line 7

def collection
  @collection
end

#configObject (readonly)

Returns the value of attribute config.



7
8
9
# File 'lib/jiggler/base_fetcher.rb', line 7

def config
  @config
end