Class: Relaton::Gb::HitCollection

Inherits:
Core::HitCollection
  • Object
show all
Defined in:
lib/relaton/gb/hit_collection.rb

Overview

Page of hit collection

Instance Method Summary collapse

Constructor Details

#initialize(hits = []) ⇒ HitCollection

Returns a new instance of HitCollection.

Parameters:

  • hits (Array<Hash>) (defaults to: [])
  • hit_pages (Integer)
  • scraper (RelatonGb::GbScraper, RelatonGb::SecScraper, RelatonGb::TScraper)


13
14
15
16
# File 'lib/relaton/gb/hit_collection.rb', line 13

def initialize(hits = [])
  @array = hits
  @fetched = false
end