Module: Twitch::Client::CustomRewards
- Included in:
- Twitch::Client
- Defined in:
- lib/twitch/client/custom_rewards.rb
Overview
API methods for custom rewards
Instance Method Summary collapse
- #create_custom_reward(options = {}) ⇒ Object
- #delete_custom_reward(options = {}) ⇒ Object
- #get_custom_reward(options = {}) ⇒ Object
- #get_custom_reward_redemption(options = {}) ⇒ Object
- #update_custom_reward(options = {}) ⇒ Object
- #update_redemption_status(options = {}) ⇒ Object
Instance Method Details
#create_custom_reward(options = {}) ⇒ Object
7 8 9 |
# File 'lib/twitch/client/custom_rewards.rb', line 7 def create_custom_reward( = {}) initialize_response CustomReward, post('channel_points/custom_rewards', ) end |
#delete_custom_reward(options = {}) ⇒ Object
15 16 17 |
# File 'lib/twitch/client/custom_rewards.rb', line 15 def delete_custom_reward( = {}) initialize_response CustomReward, delete('channel_points/custom_rewards', ) end |
#get_custom_reward(options = {}) ⇒ Object
11 12 13 |
# File 'lib/twitch/client/custom_rewards.rb', line 11 def get_custom_reward( = {}) initialize_response CustomReward, get('channel_points/custom_rewards', ) end |
#get_custom_reward_redemption(options = {}) ⇒ Object
19 20 21 |
# File 'lib/twitch/client/custom_rewards.rb', line 19 def get_custom_reward_redemption( = {}) initialize_response CustomReward, get('channel_points/custom_rewards/redemptions', ) end |
#update_custom_reward(options = {}) ⇒ Object
23 24 25 |
# File 'lib/twitch/client/custom_rewards.rb', line 23 def update_custom_reward( = {}) initialize_response CustomReward, patch('channel_points/custom_rewards', ) end |
#update_redemption_status(options = {}) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/twitch/client/custom_rewards.rb', line 27 def update_redemption_status( = {}) initialize_response( CustomReward, patch('channel_points/custom_rewards/redemptions', ) ) end |