Class: Pixiv::IllustList Abstract
- Includes:
- PageCollection
- Defined in:
- lib/pixiv/illust_list.rb
Overview
This class is abstract.
Direct Known Subclasses
Defined Under Namespace
Modules: WithClient
Instance Attribute Summary collapse
- #page ⇒ Integer readonly
- #total_count ⇒ Integer readonly
Instance Method Summary collapse
- #doc ⇒ Object
-
#illust_hashes ⇒ Array<{Symbol=>Object}, nil>
An array of illust attrs extracted from doc.
- #page_class ⇒ Object
Methods included from PageCollection
#first?, #last?, #next_attrs, #next_url, #page_hashes, #prev_attrs, #prev_url, #size
Methods inherited from Page
#bind, #fetched?, #force, #initialize, lazy_new
Constructor Details
This class inherits a constructor from Pixiv::Page
Instance Attribute Details
#page ⇒ Integer (readonly)
18 19 20 |
# File 'lib/pixiv/illust_list.rb', line 18 def page @page end |
#total_count ⇒ Integer (readonly)
20 21 22 |
# File 'lib/pixiv/illust_list.rb', line 20 def total_count @total_count end |
Instance Method Details
#doc ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/pixiv/illust_list.rb', line 9 def doc unless @doc super check_bounds! end @doc end |
#illust_hashes ⇒ Array<{Symbol=>Object}, nil>
An array of illust attrs extracted from doc
32 33 34 |
# File 'lib/pixiv/illust_list.rb', line 32 def illust_hashes page_hashes end |
#page_class ⇒ Object
22 23 24 |
# File 'lib/pixiv/illust_list.rb', line 22 def page_class Illust end |