class ChgkRating::Collections::TournamentPlayers

Attributes

team[R]
tournament[R]

Public Class Methods

new(params = {}) click to toggle source
Calls superclass method ChgkRating::Collections::Base::new
# File lib/chgk_rating/collections/tournament_players.rb, line 6
def initialize(params = {})
  @tournament = build_model params[:tournament], ChgkRating::Models::Tournament
  @team = build_model params[:team]

  super
end

Private Instance Methods

api_path() click to toggle source
# File lib/chgk_rating/collections/tournament_players.rb, line 19
def api_path
  "tournaments/#{@tournament.id}/recaps/#{@team.id}"
end
process(*_args) click to toggle source
Calls superclass method ChgkRating::Collections::Base#process
# File lib/chgk_rating/collections/tournament_players.rb, line 15
def process(*_args)
  super { |result| ChgkRating::Models::TournamentPlayer.new result }
end