Module: FFaker::Youtube

Extended by:
ModuleUtils, Youtube
Included in:
Youtube
Defined in:
lib/ffaker/youtube.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#embed_urlObject



16
17
18
# File 'lib/ffaker/youtube.rb', line 16

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

#share_urlObject



12
13
14
# File 'lib/ffaker/youtube.rb', line 12

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

#urlObject



8
9
10
# File 'lib/ffaker/youtube.rb', line 8

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

#video_idObject



20
21
22
# File 'lib/ffaker/youtube.rb', line 20

def video_id
  fetch_sample(VIDEO_IDS)
end