Class: Track

Inherits:
Lastfmbb show all
Defined in:
lib/lastfmbb/track.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, aname, ambid, aurl) ⇒ Track

Returns a new instance of Track.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/lastfmbb/track.rb', line 12

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

Instance Attribute Details

#ambidObject (readonly)

Returns the value of attribute ambid.



9
10
11
# File 'lib/lastfmbb/track.rb', line 9

def ambid
  @ambid
end

#anameObject (readonly)

Returns the value of attribute aname.



8
9
10
# File 'lib/lastfmbb/track.rb', line 8

def aname
  @aname
end

#aurlObject (readonly)

Returns the value of attribute aurl.



10
11
12
# File 'lib/lastfmbb/track.rb', line 10

def aurl
  @aurl
end

#imageObject (readonly)

Returns the value of attribute image.



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

def image
  @image
end

#mbidObject (readonly)

Returns the value of attribute mbid.



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

def mbid
  @mbid
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#playcountObject (readonly)

Returns the value of attribute playcount.



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

def playcount
  @playcount
end

#streamableObject (readonly)

Returns the value of attribute streamable.



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

def streamable
  @streamable
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end