Class: Onebox::Engine::TwitchClipsOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::TwitchClipsOnebox
- Includes:
- Mixins::TwitchOnebox
- Defined in:
- lib/onebox/engine/twitch_clips_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_clips_onebox.rb', line 6 def self.twitch_regexp /^https?:\/\/clips\.twitch\.tv\/([a-zA-Z0-9_]+\/?[^#\?\/]+)/ end |
Instance Method Details
#base_url ⇒ Object
17 18 19 |
# File 'lib/onebox/engine/twitch_clips_onebox.rb', line 17 def base_url "clips.twitch.tv/embed?" end |
#query_params ⇒ Object
13 14 15 |
# File 'lib/onebox/engine/twitch_clips_onebox.rb', line 13 def query_params "clip=#{twitch_id}" end |