Method: ClawDruid#initialize
- Defined in:
- lib/claw_druid.rb
#initialize(params = {}) ⇒ ClawDruid
Returns a new instance of ClawDruid.
41 42 43 44 45 46 47 48 |
# File 'lib/claw_druid.rb', line 41 def initialize(params = {}) @url = params[:url] @params = {dataSource: params[:source], granularity: "all", queryType: Select} @threshold = params[:threshold] || THRESHOLD # The page_identifiers of every query, the key is the params.hash of the query, the value is a identifiers like "publisher_daily_report_2017-02-02T00:00:00.000Z_2017-02-04T00:00:00.000Z_2017-03-30T12:10:27.053Z" @paging_identifiers = {} end |