Class: BrowserOfBabel::Volume

Inherits:
Holotheca show all
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

#child_class, #parent_class

Attributes included from Holotheca::Holarchy

#identifier, #parent

Instance Method Summary collapse

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

#>>, #depth, #holarchy, #root

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

#titleString

Note:

This performs a network request to fetch a page.

Get the volume’s title.

Returns:

  • (String)


16
17
18
19
# File 'lib/browser_of_babel/volume.rb', line 16

def title
  # @type var _ : Page
  @title ||= (_ = down(1)).volume_title
end