Class: Earworm::Track

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrack

Returns a new instance of Track.



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

def initialize
  @title = nil
  @artist_name = nil
  @puid_list = []
end

Instance Attribute Details

#artist_nameObject Also known as: artist

Returns the value of attribute artist_name.



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

def artist_name
  @artist_name
end

#puid_listObject

Returns the value of attribute puid_list.



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

def puid_list
  @puid_list
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end