Class: Videodrome::URL
- Inherits:
-
Object
- Object
- Videodrome::URL
- Defined in:
- lib/videodrome/url.rb
Overview
ID extraction utility class for Youtube video URLs
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(url) ⇒ URL
constructor
A new instance of URL.
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
#id ⇒ Object
9 10 11 |
# File 'lib/videodrome/url.rb', line 9 def id @match_data[1] end |