lib/chgk_rating/models/team.rb in chgk_rating-1.0.0 vs lib/chgk_rating/models/team.rb in chgk_rating-2.0.0

- old
+ new

@@ -17,22 +17,22 @@ # @param tournament_or_id [String, Integer or Tournament] Tournament to load the team for def at_tournament(tournament_or_id) ChgkRating::Models::TournamentTeam.new self, tournament: tournament_or_id, lazy: true end - # Returns Rating for the current Team in a given release + # Returns rating for the current Team in a given release # - # @return [ChgkRating::Models::Rating] The requested Rating. + # @return [ChgkRating::Models::TeamRating] The requested rating. # @param release_id [String or Integer] Release to load rating for. def rating(release_id) - ChgkRating::Models::Rating.new release_id, team: self + ChgkRating::Models::TeamRating.new release_id, team: self end - # Returns an array-like Ratings collection for the current team. + # Returns an array-like ratings collection for the current Team. # - # @return [ChgkRating::Collection::Ratings] The collection of ratings. + # @return [ChgkRating::Collection::TeamRatings] The collection of ratings. def ratings - ChgkRating::Collections::Ratings.new team: self + ChgkRating::Collections::TeamRatings.new team: self end # Returns an hash-like Recaps collection for the current team, grouped by seasons. Seasons act # as keys, whereas Recap models - as values. # \ No newline at end of file