Class: Shoutcast::Genre

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

Overview

A music genre.

Instance Method Summary collapse

Methods included from Xml

included

Instance Method Details

#<=>(other) ⇒ Object

Compare by name



178
179
180
# File 'lib/shoutcast_api.rb', line 178

def <=>(other)
  name <=> other.name
end

#to_sObject

String representation of this station



183
184
185
# File 'lib/shoutcast_api.rb', line 183

def to_s
  name
end