Class: Onebox::Engine::TwitchVideoOnebox

Inherits:
Object
  • Object
show all
Includes:
Mixins::TwitchOnebox
Defined in:
lib/onebox/engine/twitch_video_onebox.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixins::TwitchOnebox

included

Class Method Details

.twitch_regexpObject



7
8
9
# File 'lib/onebox/engine/twitch_video_onebox.rb', line 7

def self.twitch_regexp
  /^https?:\/\/(?:www\.)?twitch\.tv\/videos\/([0-9]+)/
end

Instance Method Details

#query_paramsObject



13
14
15
# File 'lib/onebox/engine/twitch_video_onebox.rb', line 13

def query_params
  "video=v#{twitch_id}"
end