Sha256: 6e452d2474c577d8186398ebfc3eeeb9c63033ad2bd9b1c1da4902a316f4b7d0

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  module Youtube
    extend ModuleUtils
    extend self

    def url
      "www.youtube.com/watch?v=#{video_id}"
    end

    def share_url
      "youtu.be/#{video_id}"
    end

    def embed_url
      "www.youtube.com/embed/#{video_id}"
    end

    def video_id
      fetch_sample(VIDEO_IDS)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 lib/ffakerTW/youtube.rb
ffakerTW-1.7.0 lib/ffakerTW/youtube.rb
ffakerTW-1.6.0 lib/ffakerTW/youtube.rb
ffakerTW-1.5.0 lib/ffakerTW/youtube.rb
ffakerTW-1.4.0 lib/ffakerTW/youtube.rb
ffakerTW-1.3.0 lib/ffakerTW/youtube.rb
ffakerTW-1.2.0 lib/ffakerTW/youtube.rb
ffakerTW-1.1.0 lib/ffakerTW/youtube.rb
ffakerTW-0.1.0 lib/ffakerTW/youtube.rb