Class: Shoutcast::Stationlist

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

Overview

A list of stations. Behaves like an Array.

See Station

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.



154
155
156
# File 'lib/shoutcast_api.rb', line 154

def base_uri
  @base_uri
end

Instance Method Details

#tunein(station) ⇒ Object

Returns an url ready to tune in.



159
160
161
# File 'lib/shoutcast_api.rb', line 159

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