Class: RatingChgkV2::Models::PlayerModel
- Inherits:
-
BaseModel
- Object
- BaseModel
- RatingChgkV2::Models::PlayerModel
show all
- Defined in:
- lib/rating_chgk_v2/models/player_model.rb
Instance Attribute Summary
Attributes inherited from BaseModel
#endpoint
Instance Method Summary
collapse
Methods inherited from BaseModel
inherited, #initialize, load
Instance Method Details
#destroy ⇒ Object
21
22
23
|
# File 'lib/rating_chgk_v2/models/player_model.rb', line 21
def destroy
endpoint.do_delete
end
|
#seasons(params = {}) ⇒ Object
#tournaments(params = {}) ⇒ Object
#update(params = {}) ⇒ Object
16
17
18
19
|
# File 'lib/rating_chgk_v2/models/player_model.rb', line 16
def update(params = {})
endpoint.reinitialize new_params: params
self.class.load :do_put, endpoint
end
|