Class: Cartola::Market::Highlight

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

Class Method Summary collapse

Class Method Details

.find_allObject



11
12
13
14
15
# File 'lib/cartola/market/highlight.rb', line 11

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