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.89 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.88 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.87 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.86 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.85 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.84 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.83 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.82 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.81 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.80 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.79 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.78 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.77 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.76 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.75 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.74 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.73 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.72 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.71 lib/onebox/engine/twitch_stream_onebox.rb
onebox-1.8.70 lib/onebox/engine/twitch_stream_onebox.rb