Class: ChgkRating::Models::PlayerRating
- Inherits:
-
Rating
- Object
- ChgkObject
- Base
- Rating
- ChgkRating::Models::PlayerRating
- Defined in:
- lib/chgk_rating/models/rating/player_rating.rb
Constant Summary
Constants included from Connection
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(release_id_or_hash, params = {}) ⇒ PlayerRating
constructor
A new instance of PlayerRating.
Methods inherited from Base
attribute_mapping, #eager_load!, inherited, no_eager_loading!, no_lazy_support!, #to_h
Methods included from Request
Methods included from Connection
Methods inherited from ChgkObject
#build_model, #extract_id_from
Constructor Details
#initialize(release_id_or_hash, params = {}) ⇒ PlayerRating
Returns a new instance of PlayerRating.
6 7 8 9 |
# File 'lib/chgk_rating/models/rating/player_rating.rb', line 6 def initialize(release_id_or_hash, params = {}) @player_id = extract_id_from params[:player], ChgkRating::Models::Player super end |