Sha256: 5e9ff6f09f1574bb741c1dc669c276cfa3703544e9351d6d074acd9473d5564b

Contents?: true

Size: 268 Bytes

Versions: 14

Compression:

Stored size: 268 Bytes

Contents

require_relative '../mixins/twitch_onebox'

class Onebox::Engine::TwitchVideoOnebox

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

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

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
onebox-1.8.22 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.21 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.20 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.19 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.18 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.17 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.16 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.15 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.14 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.13 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.12 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.11 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.10 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.9 lib/onebox/engine/twitch_video_onebox.rb