Class: Artist

Inherits:
Lastfmbb show all
Defined in:
lib/lastfmbb/artist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Lastfmbb

gen_bb, load_and_gen, load_top_last

Constructor Details

#initialize(name, playcount, mbid, url, image, streamable) ⇒ Artist

Returns a new instance of Artist.



9
10
11
12
13
14
15
16
# File 'lib/lastfmbb/artist.rb', line 9

def initialize(name, playcount, mbid, url, image, streamable)
    @name = name
    @playcount = playcount
    @mbid = mbid
    @url = url
    @image = image
    @streamable = streamable
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



6
7
8
# File 'lib/lastfmbb/artist.rb', line 6

def image
  @image
end

#mbidObject (readonly)

Returns the value of attribute mbid.



4
5
6
# File 'lib/lastfmbb/artist.rb', line 4

def mbid
  @mbid
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/lastfmbb/artist.rb', line 2

def name
  @name
end

#playcountObject (readonly)

Returns the value of attribute playcount.



3
4
5
# File 'lib/lastfmbb/artist.rb', line 3

def playcount
  @playcount
end

#streamableObject (readonly)

Returns the value of attribute streamable.



7
8
9
# File 'lib/lastfmbb/artist.rb', line 7

def streamable
  @streamable
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/lastfmbb/artist.rb', line 5

def url
  @url
end