Class: Shoutcast::Stationlist
- Inherits:
-
Object
- Object
- Shoutcast::Stationlist
- 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
-
.base_uri ⇒ Object
Returns the value of attribute base_uri.
Instance Method Summary collapse
-
#tunein(station) ⇒ Object
Returns an url ready to tune in.
Methods included from Xml
Class Attribute Details
.base_uri ⇒ Object
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 |