Class: Spotiphy

Inherits:
Site
  • Object
show all
Defined in:
lib/terminal_player/spotiphy.rb

Instance Attribute Summary

Attributes inherited from Site

#channels, #current_channel, #is_di_plus, #is_mplayer, #is_spotify, #name, #player, #songs

Instance Method Summary collapse

Methods inherited from Site

#play, #song_changed

Constructor Details

#initialize(options) ⇒ Spotiphy

Returns a new instance of Spotiphy.



4
5
6
# File 'lib/terminal_player/spotiphy.rb', line 4

def initialize(options)
  super(options, "spotify")
end

Instance Method Details

#get_channelsObject



8
9
10
11
# File 'lib/terminal_player/spotiphy.rb', line 8

def get_channels
  # TODO maybe playlists?
  @channels = [{id: 0, name: "There is no channel support for spotify yet."}]
end