Class: Pennyworth::Loaders::Rodauth
- Inherits:
-
Object
- Object
- Pennyworth::Loaders::Rodauth
- Defined in:
- lib/pennyworth/loaders/rodauth.rb
Overview
Loads Rodauth documentation by scraping the web page.
Instance Method Summary collapse
- #call(uri) ⇒ Object
-
#initialize(parser: Nokogiri::HTML5, model: Models::Rodauth) ⇒ Rodauth
constructor
A new instance of Rodauth.
Constructor Details
Instance Method Details
#call(uri) ⇒ Object
21 22 23 24 25 |
# File 'lib/pennyworth/loaders/rodauth.rb', line 21 def call uri fetch(uri).then { parse_items it } .each .with_object([]) { |item, entries| entries.append build_record(item) } end |