class Onebox::Engine::TwitchVideoOnebox

Public Class Methods

twitch_regexp() click to toggle source
# File lib/onebox/engine/twitch_video_onebox.rb, line 6
def self.twitch_regexp
  /^https?:\/\/(?:www\.)?twitch\.tv\/videos\/([0-9]+)/
end

Public Instance Methods

query_params() click to toggle source
# File lib/onebox/engine/twitch_video_onebox.rb, line 12
def query_params
  "video=v#{twitch_id}"
end