Class: SpielplanSaar::TableParser

Inherits:
Object
  • Object
show all
Defined in:
lib/spielplan_saar/table_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html_content) ⇒ TableParser

Returns a new instance of TableParser.



7
8
9
# File 'lib/spielplan_saar/table_parser.rb', line 7

def initialize(html_content)
  @html_content = html_content
end

Instance Attribute Details

#html_contentObject (readonly)

Returns the value of attribute html_content.



5
6
7
# File 'lib/spielplan_saar/table_parser.rb', line 5

def html_content
  @html_content
end

Instance Method Details

#parseObject



11
12
13
14
15
# File 'lib/spielplan_saar/table_parser.rb', line 11

def parse
  table_row_nodes.collect do |row_node|
    TableEntry.parse(row_node)
  end
end