class MyEpisodes::TableParser

Public Class Methods

new(options={}) click to toggle source
# File lib/my_episodes/table_parser.rb, line 5
def initialize(options={})
        @options = options
        @search_string = 'table.mylist tr'.freeze
end

Public Instance Methods

parse(page) click to toggle source
# File lib/my_episodes/table_parser.rb, line 10
def parse(page)
        table = page.search(@search_string)
        table.shift unless @options[:keep_header]
        table
end