module Irasutoya::Modules::HasListPageParser::Methods

Public Instance Methods

parse_list_page(document:) click to toggle source
# 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