Class: WiMP::SimpleArtist
- Inherits:
-
Struct
- Object
- Struct
- WiMP::SimpleArtist
- Defined in:
- lib/wimp/simple_artist.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#url ⇒ Object
String.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/wimp/simple_artist.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/wimp/simple_artist.rb', line 2 def name @name end |
Instance Method Details
#url ⇒ Object
Returns String.
6 7 8 |
# File 'lib/wimp/simple_artist.rb', line 6 def url "http://wimpmusic.se/artist/#{id}" end |