Sha256: 3ffe688ced294fb888d68edbe43eff3af1f1825f67e3c71cdc72932f79abff61
Contents?: true
Size: 297 Bytes
Versions: 3
Compression:
Stored size: 297 Bytes
Contents
module Cartola class Matches < RestModel property :rodada embeds_many :partidas, class_name: Cartola::Match def self.find_all response = RestClient.get 'https://api.cartolafc.globo.com/partidas' json = JSON.parse response.body from_source(json) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cartola-0.1.4 | lib/cartola/matches.rb |
cartola-0.1.3 | lib/cartola/matches.rb |
cartola-0.1.2 | lib/cartola/matches.rb |