Sha256: 6769e6e28d29450faf2437cbaa400050b3eb38ff53fc89be376707be7f9b0bf5

Contents?: true

Size: 325 Bytes

Versions: 14

Compression:

Stored size: 325 Bytes

Contents

require_relative '../mixins/twitch_onebox'

class Onebox::Engine::TwitchClipsOnebox

  def self.twitch_regexp
	  /^https?:\/\/clips\.twitch\.tv\/([a-zA-Z0-9_]+\/?[^#\?\/]+)/
  end
  include Onebox::Mixins::TwitchOnebox

  def query_params
    "clip=#{twitch_id}"
  end

  def base_url
    "clips.twitch.tv/embed?"
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

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