Class: Scruber::Core::Extensions::QueueAliases

Inherits:
Base
  • Object
show all
Defined in:
lib/scruber/core/extensions/queue_aliases.rb

Overview

DSL for adding pages to queue

Examples:

Sample of DSL

Scruber.run :sample do
  get_product 'https://example.com/product1.html'
  # Alias to
  # queue.add 'https://example.com/product1.html', page_type: :product

  post_subscribe 'https://example.com/subscribe', body: { email: '[email protected]' }
  # Alias to
  # queue.add 'https://example.com/product1.html', method: :post, page_type: :subscribe, body: { email: '[email protected]' }
end

Author:

  • Ivan Gocharov

Defined Under Namespace

Modules: CoreMethods

Method Summary

Methods inherited from Base

descendants, inherited, register