Sha256: d95c0febd5b4e8300a47d68e7fe8a2888975dbecb0060f05ff7844425f771ca1
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
module Activities # Activity Record Class class Record def self.pickup_record(record_doc) result = {} record_doc.css("td").each_with_index do |td, n| record_content = td.content.strip case n when 0 then result[:round] = record_content when 1 then result[:opponent_rank] = record_content when 2 then result[:opponent_name] = record_content when 3 then result[:win_loss] = record_content when 4 then result[:score] = record_content end end result end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atp_scraper-0.5.1 | lib/atp_scraper/activities/record.rb |