Class: Shoutcast::Fetcher

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/shoutcast_api.rb

Class Method Summary collapse

Class Method Details

.genresObject



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(options={})
  fetch(options) do |xml|
    Stationlist.from_xml xml
  end
end