Class: ItunesCLI::App

Inherits:
Optitron::CLI
  • Object
show all
Includes:
ItunesCLI
Defined in:
lib/itunes-cli/app.rb

Constant Summary

Constants included from ItunesCLI

AUTHOR, NAME, VERSION

Instance Method Summary collapse

Instance Method Details

#nextObject



43
44
45
46
# File 'lib/itunes-cli/app.rb', line 43

def next
  player = Player.new
  player.next
end

#pauseObject



25
26
27
28
# File 'lib/itunes-cli/app.rb', line 25

def pause
  player = Player.new
  player.pause
end

#playObject



19
20
21
22
# File 'lib/itunes-cli/app.rb', line 19

def play
  player = Player.new
  player.play
end

#prevObject



37
38
39
40
# File 'lib/itunes-cli/app.rb', line 37

def prev
  player = Player.new
  player.prev
end

#showObject



13
14
15
16
# File 'lib/itunes-cli/app.rb', line 13

def show
  player = Player.new
  puts player.current
end

#stopObject



31
32
33
34
# File 'lib/itunes-cli/app.rb', line 31

def stop
  player = Player.new
  player.stop
end

#versionObject



8
9
10
# File 'lib/itunes-cli/app.rb', line 8

def version
  puts "#{NAME} v#{VERSION}\nby #{AUTHOR}"
end