Class: Cartola::Matches
- Inherits:
-
RestModel
- Object
- RestModel
- Cartola::Matches
- Defined in:
- lib/cartola/matches.rb
Class Method Summary collapse
Class Method Details
.find_all ⇒ Object
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 |