Module: Gamerom::RepoAdapter
- Included in:
- Gamerom::RepoAdapters::Coolrom, Gamerom::RepoAdapters::Romnation, Gamerom::RepoAdapters::Vimm
- Defined in:
- lib/gamerom/repo_adapter.rb
Overview
RepoAdapter - Common adapter methods
Instance Method Summary collapse
Instance Method Details
#games(platform) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/gamerom/repo_adapter.rb', line 13 def games(platform) games = [] = ProgressBar.new(platform, sections.count) extract_games(platform) do |section_games, section_index| games.append(*section_games) .set(section_index + 1) end .finish games end |
#nokogiri_get(url) ⇒ Object
9 10 11 |
# File 'lib/gamerom/repo_adapter.rb', line 9 def nokogiri_get(url) Nokogiri::HTML(RestClient.get(url)) end |