Class: Track

Inherits:
Object
  • Object
show all
Defined in:
lib/track.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, artist, rank, cover) ⇒ Track

Returns a new instance of Track.



6
7
8
9
10
11
# File 'lib/track.rb', line 6

def initialize(title, artist, rank, cover)
	@title = title
	@artist = artist
	@rank = rank
	@cover = cover
end

Instance Attribute Details

#artistObject

Returns the value of attribute artist.



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

def artist
  @artist
end

#coverObject

Returns the value of attribute cover.



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

def cover
  @cover
end

#rankObject

Returns the value of attribute rank.



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

def rank
  @rank
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end