Sha256: 533aaf2c1637291e581a8dde3a4323b86056fa8162ecadd3a98030728025e854

Contents?: true

Size: 270 Bytes

Versions: 65

Compression:

Stored size: 270 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

65 entries across 65 versions & 1 rubygems

Version Path
onebox-1.8.89 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.88 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.87 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.86 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.85 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.84 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.83 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.82 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.81 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.80 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.79 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.78 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.77 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.76 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.75 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.74 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.73 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.72 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.71 lib/onebox/engine/twitch_video_onebox.rb
onebox-1.8.70 lib/onebox/engine/twitch_video_onebox.rb