Class: EhbrsRubyUtils::Bga::Parsers::Table::Options

Inherits:
Aranha::Parsers::Html::ItemList
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/bga/parsers/table/options.rb

Constant Summary collapse

ITEMS_XPATH =
'//div[starts-with(@id, "gameoption_") ' \
'and not(contains(@style, "none"))]'

Instance Method Summary collapse

Instance Method Details

#dataObject



24
25
26
# File 'lib/ehbrs_ruby_utils/bga/parsers/table/options.rb', line 24

def data
  super.reject { |item| item.fetch(:label).blank? }
end

#items_xpathObject



20
21
22
# File 'lib/ehbrs_ruby_utils/bga/parsers/table/options.rb', line 20

def items_xpath
  ITEMS_XPATH
end