Class: BrowserOfBabel::Volume
- Defined in:
- lib/browser_of_babel/volume.rb
Overview
Fourth-level holotheca in the library. Identifier is between 1 and 32. Contains 410 pages.
Constant Summary
Constants inherited from Holotheca
Holotheca::DEFAULT_URL_FORMATTER
Instance Attribute Summary
Attributes included from Holotheca::Holarchy::ClassMethods
Attributes included from Holotheca::Holarchy
Instance Method Summary collapse
-
#title ⇒ String
Get the volume’s title.
Methods inherited from Holotheca
holotheca_name, identifier_class, identifier_format, #initialize, #to_s, #to_s_part, #to_url, #to_url_part, url_format
Methods included from Holotheca::Holarchy::ClassMethods
Methods included from Holotheca::Holarchy
#depth, #dig, #down, #initialize, #path, #path_identifiers, #root, #up
Constructor Details
This class inherits a constructor from BrowserOfBabel::Holotheca
Instance Method Details
#title ⇒ String
Note:
This performs a network request to fetch a page.
Get the volume’s title.
16 17 18 19 |
# File 'lib/browser_of_babel/volume.rb', line 16 def title # @type var _ : Page @title ||= (_ = down(1)).volume_title end |