Class: EhbrsRubyUtils::Bga::Parsers::Table
- Inherits:
-
Aranha::Parsers::Html::Item
- Object
- Aranha::Parsers::Html::Item
- EhbrsRubyUtils::Bga::Parsers::Table
show all
- Defined in:
- lib/ehbrs_ruby_utils/bga/parsers/table.rb,
lib/ehbrs_ruby_utils/bga/parsers/table/options.rb,
lib/ehbrs_ruby_utils/bga/parsers/table/players.rb
Defined Under Namespace
Classes: Options, Players
Constant Summary
collapse
- ITEM_XPATH =
'/'
Instance Method Summary
collapse
Instance Method Details
#data ⇒ Object
23
24
25
26
27
28
29
30
31
|
# File 'lib/ehbrs_ruby_utils/bga/parsers/table.rb', line 23
def data
r = super
i[options players].each do |key|
r[key] = self.class.const_get(key.to_s.camelize).from_node(r.fetch(key)).data
end
r[:creation_time] = process_creation_time(r[:creation_time])
r[:game_conceded] = process_game_conceded(r[:game_conceded])
r
end
|
#item_xpath ⇒ Object
19
20
21
|
# File 'lib/ehbrs_ruby_utils/bga/parsers/table.rb', line 19
def item_xpath
ITEM_XPATH
end
|