Class: Cartola::Market::Status

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

Class Method Summary collapse

Class Method Details

.findObject



20
21
22
23
24
# File 'lib/cartola/market/status.rb', line 20

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