Module: RatingChgkV2::Rest::Seasons
- Included in:
- RatingChgkV2::Rest
- Defined in:
- lib/rating_chgk_v2/rest/seasons.rb
Instance Method Summary collapse
- #create_season(params) ⇒ Object
- #delete_season(id) ⇒ Object
- #season(id) ⇒ Object
- #seasons ⇒ Object
- #update_season(id, params) ⇒ Object
Instance Method Details
#create_season(params) ⇒ Object
14 15 16 |
# File 'lib/rating_chgk_v2/rest/seasons.rb', line 14 def create_season(params) model_load name: 'Season', ep_name: 'Seasons', ep_params: [[], params], method: :do_post end |
#delete_season(id) ⇒ Object
22 23 24 |
# File 'lib/rating_chgk_v2/rest/seasons.rb', line 22 def delete_season(id) endpoint('Seasons', id).do_delete end |
#season(id) ⇒ Object
10 11 12 |
# File 'lib/rating_chgk_v2/rest/seasons.rb', line 10 def season(id) model_load name: 'Season', ep_name: 'Seasons', ep_params: id end |
#seasons ⇒ Object
6 7 8 |
# File 'lib/rating_chgk_v2/rest/seasons.rb', line 6 def seasons collection_load name: 'Seasons', ep_params: [[]] end |
#update_season(id, params) ⇒ Object
18 19 20 |
# File 'lib/rating_chgk_v2/rest/seasons.rb', line 18 def update_season(id, params) model_load name: 'Season', ep_name: 'Seasons', ep_params: [id, params], method: :do_patch end |