Class: Pixiv::IllustList Abstract

Inherits:
Page
  • Object
show all
Includes:
PageCollection
Defined in:
lib/pixiv/illust_list.rb

Overview

This class is abstract.

Direct Known Subclasses

OwnedIllustList, SearchResultList

Defined Under Namespace

Modules: WithClient

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pageInteger (readonly)

Returns:

  • (Integer)


18
19
20
# File 'lib/pixiv/illust_list.rb', line 18

def page
  @page
end

#total_countInteger (readonly)

Returns:

  • (Integer)


20
21
22
# File 'lib/pixiv/illust_list.rb', line 20

def total_count
  @total_count
end

Instance Method Details

#docObject



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_hashesArray<{Symbol=>Object}, nil>

An array of illust attrs extracted from doc

Returns:

  • (Array<{Symbol=>Object}, nil>)


32
33
34
# File 'lib/pixiv/illust_list.rb', line 32

def illust_hashes
  page_hashes
end

#page_classObject



22
23
24
# File 'lib/pixiv/illust_list.rb', line 22

def page_class
  Illust
end