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, #vote, #votes

Constructor Details

This class inherits a constructor from Anyplayer::Player

Instance Method Details

#album ⇒ Object



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

def album
  "Money"
end

#artist ⇒ Object



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

def artist
  "The Drums"
end

#launched? ⇒ Boolean

Returns:

  • (Boolean)


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

def launched?
  true
end

#next ⇒ Object



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

def next
  super
end

#pause ⇒ Object



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

def pause
end

#play ⇒ Object



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

def play
end

#playpause ⇒ Object



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

def playpause
end

#prev ⇒ Object



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

def prev
  super
end

#track ⇒ Object



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

def track
  "Money"
end

#voldown ⇒ Object



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

def voldown
end

#volume ⇒ Object



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

def volume
  100
end

#volup ⇒ Object



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

def volup
end