Sha256: bad5b146166c3d741cfc66258a7f89652bbd914a5b896db75d0212e4393d0b9a

Contents?: true

Size: 294 Bytes

Versions: 67

Compression:

Stored size: 294 Bytes

Contents

require_relative '../mixins/twitch_onebox'

class Onebox::Engine::TwitchStreamOnebox

  def self.twitch_regexp
    /^https?:\/\/(?:www\.|go\.)?twitch\.tv\/(?!directory)([a-zA-Z0-9_]{4,25})$/
  end
  include Onebox::Mixins::TwitchOnebox

  def query_params
    "channel=#{twitch_id}"
  end

end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
onebox-1.8.48 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.47 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.46 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.45 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.44 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.43 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.42 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.41 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.40 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.39 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.38 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.36 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.35 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.34 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.33 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.32 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.31 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.30 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.29 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.28 lib/onebox/engine/twitch_stream_onebox.rb