Class: ITunesCrawler::StorefrontFetcher
- Inherits:
-
Object
- Object
- ITunesCrawler::StorefrontFetcher
- Defined in:
- lib/itunes_crawler/storefront_fetcher.rb,
lib/itunes_crawler/storefront_fetcher/fetcher.rb,
lib/itunes_crawler/storefront_fetcher/callback.rb,
lib/itunes_crawler/storefront_fetcher/retryable.rb
Defined Under Namespace
Modules: Callback, Fetcher, Retryable
Instance Attribute Summary collapse
-
#retry_count ⇒ Object
Returns the value of attribute retry_count.
Instance Method Summary collapse
-
#initialize(retry_count = 5) ⇒ StorefrontFetcher
constructor
A new instance of StorefrontFetcher.
Methods included from Fetcher
Methods included from Retryable
Methods included from Callback
Constructor Details
#initialize(retry_count = 5) ⇒ StorefrontFetcher
Returns a new instance of StorefrontFetcher.
13 14 15 16 |
# File 'lib/itunes_crawler/storefront_fetcher.rb', line 13 def initialize( retry_count=5 ) @retry_count = retry_count @hydra = Typhoeus::Hydra.new end |
Instance Attribute Details
#retry_count ⇒ Object
Returns the value of attribute retry_count.
11 12 13 |
# File 'lib/itunes_crawler/storefront_fetcher.rb', line 11 def retry_count @retry_count end |