Module: FFaker::Youtube
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#embed_url ⇒ Object
16
17
18
|
# File 'lib/ffaker/youtube.rb', line 16
def embed_url
"www.youtube.com/embed/#{video_id}"
end
|
#share_url ⇒ Object
12
13
14
|
# File 'lib/ffaker/youtube.rb', line 12
def share_url
"youtu.be/#{video_id}"
end
|
#url ⇒ Object
8
9
10
|
# File 'lib/ffaker/youtube.rb', line 8
def url
"www.youtube.com/watch?v=#{video_id}"
end
|
#video_id ⇒ Object
20
21
22
|
# File 'lib/ffaker/youtube.rb', line 20
def video_id
fetch_sample(VIDEO_IDS)
end
|