Class: Pumi::DataSource::Wikipedia::CambodianProvincesScraper
- Inherits:
-
Object
- Object
- Pumi::DataSource::Wikipedia::CambodianProvincesScraper
- Defined in:
- lib/pumi/data_source/wikipedia.rb
Constant Summary collapse
- URL =
"https://en.wikipedia.org/wiki/Provinces_of_Cambodia".freeze
Instance Method Summary collapse
Instance Method Details
#scrape! ⇒ Object
63 64 65 66 67 68 69 70 71 |
# File 'lib/pumi/data_source/wikipedia.rb', line 63 def scrape! Province.all.each_with_object([]) do |province, result| result << ScraperResult.new( code: province.id, wikipedia: find_url(province), name_ungegn: find_ungegn(province) ) end end |