Sha256: 6a4efcaec2f9c48c789af550aeca6009e1038b0bbc3d06a20049de1ffdbd13b1

Contents?: true

Size: 623 Bytes

Versions: 16

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

require 'aranha/parsers/html/item'
require 'aranha/parsers/html/item_list'
require 'dentaku'
require 'eac_ruby_utils/core_ext'

module EhbrsRubyUtils
  module Bga
    module Parsers
      class Table < ::Aranha::Parsers::Html::Item
        class ActivePlayers < ::Aranha::Parsers::Html::ItemList
          ITEMS_XPATH = '//div[starts-with(@id, "active_player_")]'

          field :id, :integer, './@id'
          field :name, :string, './/*[contains(@class, "active_player_fullname")]'

          def items_xpath
            ITEMS_XPATH
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ehbrs_ruby_utils-0.44.2 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.44.1 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.44.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.41.1 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.41.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.40.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.39.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.38.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.37.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.36.1 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.36.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.35.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.33.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.32.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.31.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
ehbrs_ruby_utils-0.30.0 lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb