Class: Twitch::CustomPowerUpsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/twitch/resources/custom_power_ups.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Twitch::Resource

Instance Method Details

#list(broadcaster_id:, ids: nil) ⇒ Object

Required scope: bits:read broadcaster_id must match the currently authenticated user



5
6
7
8
9
10
11
# File 'lib/twitch/resources/custom_power_ups.rb', line 5

def list(broadcaster_id:, ids: nil)
  params = { broadcaster_id: broadcaster_id }
  params[:id] = ids if ids

  response = get_request("bits/custom_power_ups", params: params)
  Collection.from_response(response, type: CustomPowerUp)
end