Class: WiMP::SimpleArtist

Inherits:
Struct
  • Object
show all
Defined in:
lib/wimp/simple_artist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/wimp/simple_artist.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/wimp/simple_artist.rb', line 2

def name
  @name
end

Instance Method Details

#urlObject

Returns String.

Returns:

  • String



6
7
8
# File 'lib/wimp/simple_artist.rb', line 6

def url
  "http://wimpmusic.se/artist/#{id}"
end