Class: Muzak::Player::StubPlayer

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/muzak/player/stub_player.rb

Direct Known Subclasses

MPV

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

#album_art?, #debug, #debug?, #error, #fail_arity, #info, #music?, #output, #pretty, resolve_command, resolve_method, #verbose, #verbose?, #warn, #warn_arity

Constructor Details

#initialize(instance) ⇒ StubPlayer

Returns a new instance of StubPlayer.



8
9
10
# File 'lib/muzak/player/stub_player.rb', line 8

def initialize(instance)
  @instance = instance
end

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



6
7
8
# File 'lib/muzak/player/stub_player.rb', line 6

def instance
  @instance
end

Instance Method Details

#activate!Object



16
17
18
# File 'lib/muzak/player/stub_player.rb', line 16

def activate!
  debug "#activate!"
end

#clear_queueObject



64
65
66
# File 'lib/muzak/player/stub_player.rb', line 64

def clear_queue
  debug "#clear_queue"
end

#deactivate!Object



20
21
22
# File 'lib/muzak/player/stub_player.rb', line 20

def deactivate!
  debug "#deactivate!"
end

#enqueue_album(album) ⇒ Object



48
49
50
# File 'lib/muzak/player/stub_player.rb', line 48

def enqueue_album(album)
  debug "#enqueue_album"
end

#enqueue_playlist(playlist) ⇒ Object



52
53
54
# File 'lib/muzak/player/stub_player.rb', line 52

def enqueue_playlist(playlist)
  debug "#enqueue_playlist"
end

#enqueue_song(song) ⇒ Object



44
45
46
# File 'lib/muzak/player/stub_player.rb', line 44

def enqueue_song(song)
  debug "#enqueue_song"
end

#list_queueObject



56
57
58
# File 'lib/muzak/player/stub_player.rb', line 56

def list_queue
  debug "#list_queue"
end

#next_songObject



36
37
38
# File 'lib/muzak/player/stub_player.rb', line 36

def next_song
  debug "#next_song"
end

#now_playingObject



68
69
70
# File 'lib/muzak/player/stub_player.rb', line 68

def now_playing
  debug "#now_playing"
end

#pauseObject



28
29
30
# File 'lib/muzak/player/stub_player.rb', line 28

def pause
  debug "#pause"
end

#playObject



24
25
26
# File 'lib/muzak/player/stub_player.rb', line 24

def play
  debug "#play"
end

#playing?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/muzak/player/stub_player.rb', line 32

def playing?
  debug "#playing?"
end

#previous_songObject



40
41
42
# File 'lib/muzak/player/stub_player.rb', line 40

def previous_song
  debug "#previous_song"
end

#running?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/muzak/player/stub_player.rb', line 12

def running?
  debug "#running?"
end

#shuffle_queueObject



60
61
62
# File 'lib/muzak/player/stub_player.rb', line 60

def shuffle_queue
  debug "#shuffle_queue"
end