Class: Shoutcast::Stationlist

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Xml
Defined in:
lib/shoutcast_api.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

included

Class Attribute Details

.base_uriObject

Returns the value of attribute base_uri.



115
116
117
# File 'lib/shoutcast_api.rb', line 115

def base_uri
  @base_uri
end

Instance Method Details

#tunein(station) ⇒ Object



119
120
121
# File 'lib/shoutcast_api.rb', line 119

def tunein(station)
  "#{self.class.base_uri}#{tunein_base_path}?id=#{station.id}"
end