Class: RiotSetBuilder::ProBuilds::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/riot_set_builder/pro_builds/parser.rb

Constant Summary collapse

BASE_URL =
'http://www.probuilds.net'

Class Method Summary collapse

Class Method Details

.parse_build(url) ⇒ Object


15
16
17
18
19
20
# File 'lib/riot_set_builder/pro_builds/parser.rb', line 15

def self.parse_build(url)
  #request build page
  #parse body for final items ul
  #parse body for buy order ul
  #create build
end

.recent_final_builds(champion) ⇒ Object


7
8
9
10
11
12
13
# File 'lib/riot_set_builder/pro_builds/parser.rb', line 7

def self.recent_final_builds(champion)
  #request page for champion
  #parse body for list items
  #generate list of urls from list items
  #for each url, parse build
  #return all builds
end