class ChgkRating::Collections::TournamentTeamResults
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_team_results.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_team_results.rb, line 19 def api_path "tournaments/#{@tournament.id}/results/#{@team.id}" end
process(*_args)
click to toggle source
Calls superclass method
ChgkRating::Collections::Base#process
# File lib/chgk_rating/collections/tournament_team_results.rb, line 15 def process(*_args) super { |result| ChgkRating::Models::TournamentTeamResult.new result } end