Sha256: cddd9db45f8e719814ab4876d77453ac4cf9f42a241ae4c63a3f498206e51155

Contents?: true

Size: 357 Bytes

Versions: 12

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module FFaker
  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

12 entries across 12 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/youtube.rb
ffaker-2.22.0 lib/ffaker/youtube.rb
ffaker-2.21.0 lib/ffaker/youtube.rb
ffaker-2.20.0 lib/ffaker/youtube.rb
ffaker-2.19.0 lib/ffaker/youtube.rb
ffaker-2.18.0 lib/ffaker/youtube.rb
ffaker-2.17.0 lib/ffaker/youtube.rb
ffaker-2.16.0 lib/ffaker/youtube.rb
ffaker-2.15.0 lib/ffaker/youtube.rb
ffaker-2.14.0 lib/ffaker/youtube.rb
ffaker-2.13.0 lib/ffaker/youtube.rb
ffaker-2.12.0 lib/ffaker/youtube.rb