Class: UpdateSoccer::Runner
- Inherits:
-
Object
- Object
- UpdateSoccer::Runner
- Defined in:
- lib/update_soccer/runner.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ Runner
constructor
A new instance of Runner.
- #run! ⇒ Object
Constructor Details
#initialize(type) ⇒ Runner
Returns a new instance of Runner.
3 4 5 |
# File 'lib/update_soccer/runner.rb', line 3 def initialize type @type = type end |
Instance Method Details
#run! ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/update_soccer/runner.rb', line 6 def run! links = UpdateSoccer::Scraper.new(@type).scrape! links.each do |hash| print_link_info(hash) end end |