Module: ITunesCrawler::StorefrontFetcher::Callback
- Included in:
- ITunesCrawler::StorefrontFetcher
- Defined in:
- lib/itunes_crawler/storefront_fetcher/callback.rb
Instance Method Summary collapse
- #on_fail(&block) ⇒ Object
-
#on_success(&block) ⇒ Object
Completetion block.
Instance Method Details
#on_fail(&block) ⇒ Object
11 12 13 14 |
# File 'lib/itunes_crawler/storefront_fetcher/callback.rb', line 11 def on_fail(&block) @fail_block = block if block_given? @fail_block end |
#on_success(&block) ⇒ Object
Completetion block
6 7 8 9 |
# File 'lib/itunes_crawler/storefront_fetcher/callback.rb', line 6 def on_success(&block) @success_block = block if block_given? @success_block end |