Class: Shoutcast::Fetcher
- Inherits:
-
Object
- Object
- Shoutcast::Fetcher
- Includes:
- HTTParty
- Defined in:
- lib/shoutcast_api.rb
Class Method Summary collapse
Class Method Details
.genres ⇒ Object
26 27 28 29 30 |
# File 'lib/shoutcast_api.rb', line 26 def self.genres fetch do |xml| Genrelist.from_xml xml end end |
.search(options = {}) ⇒ Object
32 33 34 35 36 |
# File 'lib/shoutcast_api.rb', line 32 def self.search(={}) fetch() do |xml| Stationlist.from_xml xml end end |