Sha256: 9162e27bddd9d83df7a4fdf64f3f8019d60b7b1b7ad20485b3ba780fb3a49d06

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

require_relative '../mixins/twitch_onebox'

class Onebox::Engine::TwitchStreamOnebox

  def self.twitch_regexp
    /^https?:\/\/(?:www\.)?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

12 entries across 12 versions & 1 rubygems

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