Class: UpdateSoccer::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/update_soccer/runner.rb

Instance Method Summary collapse

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!
  message
  links = UpdateSoccer::Scraper.new(@type).scrape!
  links.each do |hash|
    print_link_info(hash)
  end
end