Class: Ejaydj::Track

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Track

Returns a new instance of Track.



14
15
16
# File 'lib/ejaydj/track.rb', line 14

def initialize(attributes={})
  instantiate_variables_from attributes
end

Instance Attribute Details

#albumObject

Returns the value of attribute album.



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

def album
  @album
end

#artistObject

Returns the value of attribute artist.



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

def artist
  @artist
end

#duration_msObject

Returns the value of attribute duration_ms.



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

def duration_ms
  @duration_ms
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#playlistObject

Returns the value of attribute playlist.



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

def playlist
  @playlist
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end