Sha256: 343bb2b1c730b244b1155bc7e6dad522ea0b9dfe356667bedaa7d51317ab4c1d
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
module Cartola module Market class Highlight < RestModel properties :escalacoes, :clube, :escudo_clube, :posicao embeds_one :atleta, class_name: 'cartola/market/athlete', start_key: 'Atleta' def self.find_all response = RestClient.get 'https://api.cartolafc.globo.com/mercado/destaques' json = JSON.parse response.body from_source(json) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cartola-0.1.4 | lib/cartola/market/highlight.rb |
cartola-0.1.3 | lib/cartola/market/highlight.rb |
cartola-0.1.2 | lib/cartola/market/highlight.rb |