Module: Irasutoya::Modules::HasListPageParser::Methods
- Defined in:
- lib/irasutoya/modules/has_list_page_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse_list_page(document:) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/irasutoya/modules/has_list_page_parser.rb', line 13 def parse_list_page(document:) document.css('.box').map do |box| { title: PrivateMethods.title_from(box: box), show_url: PrivateMethods.show_url_from(box: box) } end end |