Sha256: ee6a8f09d65fcd116e3aff3173d26c161e83fe4bbdc7c4db7de6f5649658ef66

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
onebox-2.2.19 lib/onebox/engine/twitch_video_onebox.rb
onebox-2.2.18 lib/onebox/engine/twitch_video_onebox.rb
onebox-2.2.17 lib/onebox/engine/twitch_video_onebox.rb
onebox-2.2.16 lib/onebox/engine/twitch_video_onebox.rb
onebox-2.2.15 lib/onebox/engine/twitch_video_onebox.rb
onebox-2.2.14 lib/onebox/engine/twitch_video_onebox.rb
onebox-2.2.13 lib/onebox/engine/twitch_video_onebox.rb