Class: Cejo::Media::Main
- Inherits:
-
Object
- Object
- Cejo::Media::Main
- Defined in:
- lib/cejo/media/get/main.rb
Overview
Main caller
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
Instance Method Summary collapse
-
#initialize(codec, url) ⇒ Main
constructor
A new instance of Main.
- #run ⇒ Object
Constructor Details
#initialize(codec, url) ⇒ Main
Returns a new instance of Main.
11 12 13 14 |
# File 'lib/cejo/media/get/main.rb', line 11 def initialize(codec, url) current = Cejo::Media::Grabbers.new.youtube_dl @info = Cejo::Media::Info.new(url, codec, current) end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
9 10 11 |
# File 'lib/cejo/media/get/main.rb', line 9 def info @info end |
Instance Method Details
#run ⇒ Object
16 17 18 |
# File 'lib/cejo/media/get/main.rb', line 16 def run Cejo::Media::Get.new(info).exec end |