Class: Twitch::BadgesResource
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#channel(broadcaster_id:) ⇒ Object
3
4
5
6
|
# File 'lib/twitch/resources/badges.rb', line 3
def channel(broadcaster_id:)
response = get_request("chat/badges?broadcaster_id=#{broadcaster_id}")
Collection.from_response(response, type: Badge)
end
|
8
9
10
11
|
# File 'lib/twitch/resources/badges.rb', line 8
def global
response = get_request("chat/badges/global")
Collection.from_response(response, type: Badge)
end
|