Class: ITunesCrawler::StorefrontFetcher

Inherits:
Object
  • Object
show all
Includes:
Callback, Fetcher
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

Instance Method Summary collapse

Methods included from Fetcher

#fetch

Methods included from Retryable

#retryable?

Methods included from Callback

#on_fail, #on_success

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_countObject

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