Class: Cejo::Media::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/media/get/main.rb

Overview

Main caller

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#infoObject (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

#runObject



16
17
18
# File 'lib/cejo/media/get/main.rb', line 16

def run
  Cejo::Media::Get.new(info).exec
end