Class: Videodrome::URL

Inherits:
Object
  • Object
show all
Defined in:
lib/videodrome/url.rb

Overview

ID extraction utility class for Youtube video URLs

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ URL

Returns a new instance of URL.



4
5
6
7
# File 'lib/videodrome/url.rb', line 4

def initialize(url)
  @url = url
  match_url(url)
end

Instance Method Details

#idObject



9
10
11
# File 'lib/videodrome/url.rb', line 9

def id
  @match_data[1]
end