Class: ChgkRating::Collections::TournamentTeamResults

Inherits:
Base show all
Defined in:
lib/chgk_rating/collections/tournament_team_results.rb

Constant Summary

Constants included from ChgkRating::Connection

ChgkRating::Connection::BASE_URL

Instance Attribute Summary collapse

Attributes inherited from Base

#items

Instance Method Summary collapse

Methods inherited from Base

#[], #convertable?, #each, #respond_to?, #to_a, #to_h

Methods included from Request

#get

Methods included from ChgkRating::Connection

#connection

Methods inherited from ChgkRating::ChgkObject

#build_model, #extract_id_from

Constructor Details

#initialize(params) ⇒ TournamentTeamResults

Returns a new instance of TournamentTeamResults.


6
7
8
9
10
11
# 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

Instance Attribute Details

#teamObject (readonly)

Returns the value of attribute team


4
5
6
# File 'lib/chgk_rating/collections/tournament_team_results.rb', line 4

def team
  @team
end

#tournamentObject (readonly)

Returns the value of attribute tournament


4
5
6
# File 'lib/chgk_rating/collections/tournament_team_results.rb', line 4

def tournament
  @tournament
end