Class: ChgkRating::Collections::TournamentTeams
- Inherits:
-
Base
- Object
- ChgkRating::ChgkObject
- Base
- ChgkRating::Collections::TournamentTeams
- Defined in:
- lib/chgk_rating/collections/tournaments/tournament_teams.rb
Constant Summary
Constants included from ChgkRating::Connection
ChgkRating::Connection::BASE_URL
Instance Attribute Summary collapse
-
#tournament ⇒ Object
readonly
Returns the value of attribute tournament.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ TournamentTeams
constructor
A new instance of TournamentTeams.
Methods inherited from Base
#[], #convertable?, #each, #respond_to?, #to_a, #to_h
Methods included from Request
Methods included from ChgkRating::Connection
Methods inherited from ChgkRating::ChgkObject
#build_model, #extract_id_from
Constructor Details
#initialize(params = {}) ⇒ TournamentTeams
Returns a new instance of TournamentTeams.
8 9 10 11 12 |
# File 'lib/chgk_rating/collections/tournaments/tournament_teams.rb', line 8 def initialize(params = {}) @tournament = build_model params[:tournament], ChgkRating::Models::Tournament super end |
Instance Attribute Details
#tournament ⇒ Object (readonly)
Returns the value of attribute tournament.
6 7 8 |
# File 'lib/chgk_rating/collections/tournaments/tournament_teams.rb', line 6 def tournament @tournament end |