Class: Youtube::Ripper
- Inherits:
-
Object
- Object
- Youtube::Ripper
- Defined in:
- lib/youtube-ripper/ripper.rb,
lib/youtube-ripper/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Attribute Summary collapse
-
#video ⇒ Object
readonly
Returns the value of attribute video.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(page_url) ⇒ Ripper
constructor
A new instance of Ripper.
Constructor Details
#initialize(page_url) ⇒ Ripper
Returns a new instance of Ripper.
5 6 7 |
# File 'lib/youtube-ripper/ripper.rb', line 5 def initialize(page_url) @page_url = page_url end |
Instance Attribute Details
#video ⇒ Object (readonly)
Returns the value of attribute video.
3 4 5 |
# File 'lib/youtube-ripper/ripper.rb', line 3 def video @video end |
Instance Method Details
#fetch ⇒ Object
9 10 11 12 |
# File 'lib/youtube-ripper/ripper.rb', line 9 def fetch @video = OpenStruct.new title: title, url: download_url self end |