Class: Rubio::Station

Inherits:
BaseStation show all
Defined in:
lib/rubio/station.rb

Instance Attribute Summary collapse

Attributes inherited from BaseStation

#language, #name, #stationuuid, #url

Instance Method Summary collapse

Constructor Details

#initialize(*args, **kwargs) ⇒ Station

Returns a new instance of Station.



9
10
11
12
# File 'lib/rubio/station.rb', line 9

def initialize(*args, **kwargs)
  super(*args, **kwargs)
  @playing = false
end

Instance Attribute Details

#playingObject

Returns the value of attribute playing.



7
8
9
# File 'lib/rubio/station.rb', line 7

def playing
  @playing
end

Instance Method Details

#playObject



14
15
16
# File 'lib/rubio/station.rb', line 14

def play
  @playing ? '■' : '▶'
end