Class: CliEplTable::Sorter

Inherits:
Object
  • Object
show all
Defined in:
lib/cli_epl_table/sorter.rb

Class Method Summary collapse

Class Method Details

.sorted_dataObject



2
3
4
5
6
7
8
# File 'lib/cli_epl_table/sorter.rb', line 2

def self.sorted_data
  team_data = CliEplTable::Scraper.scrape_site.search('tbody tr[data-compseason="274"]')

  team_array = []
  team_data.each {|team| team_array << team}
  team_array
end