Sha256: 98b7c649364dfae4bf1eb76fa41a0a94070b306fbce9b51d62f46645ecbe2c24
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
module ChgkRating module Collections class TournamentPlayers < Base attr_reader :team, :tournament def initialize(params = {}) @tournament = build_model params[:tournament], ChgkRating::Models::Tournament @team = build_model params[:team] super end private def process(*_args) super { |result| ChgkRating::Models::TournamentPlayer.new result } end def api_path "tournaments/#{@tournament.id}/recaps/#{@team.id}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chgk_rating-1.0.0.rc1 | lib/chgk_rating/collections/tournament_players.rb |