Class: Onebox::Engine::TwitchStreamOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::TwitchStreamOnebox
- Includes:
- Mixins::TwitchOnebox
- Defined in:
- lib/onebox/engine/twitch_stream_onebox.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Mixins::TwitchOnebox
Class Method Details
.twitch_regexp ⇒ Object
6 7 8 |
# 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 |
Instance Method Details
#query_params ⇒ Object
12 13 14 |
# File 'lib/onebox/engine/twitch_stream_onebox.rb', line 12 def query_params "channel=#{twitch_id}" end |