Class: Cartola::Matches

Inherits:
RestModel
  • Object
show all
Defined in:
lib/cartola/matches.rb

Class Method Summary collapse

Class Method Details

.find_allObject



7
8
9
10
11
# File 'lib/cartola/matches.rb', line 7

def self.find_all
  response = RestClient.get 'https://api.cartolafc.globo.com/partidas'
  json = JSON.parse response.body
  from_source(json)
end