Class: Anyplayer::Noplayer

Inherits:
Player
  • Object
show all
Defined in:
lib/anyplayer/players/noplayer.rb

Constant Summary

Constants inherited from Player

Player::DEFAULT_VOTES_TO_SKIP

Instance Method Summary collapse

Methods inherited from Player

#initialize, #name, #paused?, #platforms, #playpause, #vote, #votes

Constructor Details

This class inherits a constructor from Anyplayer::Player

Instance Method Details

#albumObject



38
39
40
# File 'lib/anyplayer/players/noplayer.rb', line 38

def album
  "Money"
end

#artistObject



34
35
36
# File 'lib/anyplayer/players/noplayer.rb', line 34

def artist
  "The Drums"
end

#launched?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/anyplayer/players/noplayer.rb', line 42

def launched?
  true
end

#nextObject



16
17
18
# File 'lib/anyplayer/players/noplayer.rb', line 16

def next
  super
end

#pauseObject



9
10
# File 'lib/anyplayer/players/noplayer.rb', line 9

def pause
end

#playObject



6
7
# File 'lib/anyplayer/players/noplayer.rb', line 6

def play
end

#playing?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/anyplayer/players/noplayer.rb', line 2

def playing?
  true
end

#prevObject



12
13
14
# File 'lib/anyplayer/players/noplayer.rb', line 12

def prev
  super
end

#trackObject



30
31
32
# File 'lib/anyplayer/players/noplayer.rb', line 30

def track
  "Money"
end

#voldownObject



20
21
# File 'lib/anyplayer/players/noplayer.rb', line 20

def voldown
end

#volumeObject



26
27
28
# File 'lib/anyplayer/players/noplayer.rb', line 26

def volume
  100
end

#volupObject



23
24
# File 'lib/anyplayer/players/noplayer.rb', line 23

def volup
end