Class: Gbbib::HitCollection
- Inherits:
-
Array
- Object
- Array
- Gbbib::HitCollection
- Defined in:
- lib/gbbib/hit_collection.rb
Overview
Page of hit collection
Instance Attribute Summary collapse
- #fetched ⇒ TrueClass, FalseClass readonly
- #hit_pages ⇒ Isobib::HitPages readonly
- #scrapper ⇒ Gbbib::GbScrapper, ... readonly
Instance Method Summary collapse
-
#initialize(hits = nil, hit_pages = nil) ⇒ HitCollection
constructor
A new instance of HitCollection.
Constructor Details
#initialize(hits = nil, hit_pages = nil) ⇒ HitCollection
Returns a new instance of HitCollection.
18 19 20 21 22 |
# File 'lib/gbbib/hit_collection.rb', line 18 def initialize(hits = nil, hit_pages = nil) concat hits @fetched = false @hit_pages = hit_pages end |
Instance Attribute Details
#fetched ⇒ TrueClass, FalseClass (readonly)
7 8 9 |
# File 'lib/gbbib/hit_collection.rb', line 7 def fetched @fetched end |
#hit_pages ⇒ Isobib::HitPages (readonly)
10 11 12 |
# File 'lib/gbbib/hit_collection.rb', line 10 def hit_pages @hit_pages end |
#scrapper ⇒ Gbbib::GbScrapper, ... (readonly)
13 14 15 |
# File 'lib/gbbib/hit_collection.rb', line 13 def scrapper @scrapper end |