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