Class: ChgkRating::Collections::TeamRatings
- Inherits:
-
Base
- Object
- ChgkRating::ChgkObject
- Base
- ChgkRating::Collections::TeamRatings
- Defined in:
- lib/chgk_rating/collections/ratings/team_ratings.rb
Constant Summary
Constants included from ChgkRating::Connection
ChgkRating::Connection::BASE_URL
Instance Attribute Summary collapse
-
#team ⇒ Object
readonly
Returns the value of attribute team.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ TeamRatings
constructor
A new instance of TeamRatings.
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 = {}) ⇒ TeamRatings
Returns a new instance of TeamRatings.
8 9 10 11 |
# File 'lib/chgk_rating/collections/ratings/team_ratings.rb', line 8 def initialize(params = {}) @team = build_model params[:team] super end |
Instance Attribute Details
#team ⇒ Object (readonly)
Returns the value of attribute team.
6 7 8 |
# File 'lib/chgk_rating/collections/ratings/team_ratings.rb', line 6 def team @team end |