class Onebox::Engine::TwitchStreamOnebox
Public Class Methods
twitch_regexp()
click to toggle source
# File lib/onebox/engine/twitch_stream_onebox.rb, line 6 def self.twitch_regexp /^https?:\/\/(?:www\.|go\.)?twitch\.tv\/(?!directory)([a-zA-Z0-9_]{4,25})$/ end
Public Instance Methods
query_params()
click to toggle source
# File lib/onebox/engine/twitch_stream_onebox.rb, line 12 def query_params "channel=#{twitch_id}" end