Module: Helpema::YouTubeDL

Extended by:
Piper, YouTubeDL
Included in:
YouTubeDL
Defined in:
lib/helpema/youtubedl.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Methods included from Piper

define_command, run_command, to_arg, validate_command

Class Attribute Details

.versionObject

Returns the value of attribute version.



6
7
8
# File 'lib/helpema/youtubedl.rb', line 6

def version
  @version
end

Instance Method Details

#json(url, &blk) ⇒ Object



22
# File 'lib/helpema/youtubedl.rb', line 22

def json(url, &blk) = YouTubeDL._json(url:url, &blk)

#mp3(url, output: '%(id)s.%(ext)s') ⇒ Object



38
39
# File 'lib/helpema/youtubedl.rb', line 38

def mp3(url, output:'%(id)s.%(ext)s') =
YouTubeDL._mp3(url:url, output:output)