Class: Ejaydj::Track
Instance Attribute Summary collapse
-
#album ⇒ Object
Returns the value of attribute album.
-
#artist ⇒ Object
Returns the value of attribute artist.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#name ⇒ Object
Returns the value of attribute name.
-
#playlist ⇒ Object
Returns the value of attribute playlist.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Track
constructor
A new instance of Track.
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
#album ⇒ Object
Returns the value of attribute album.
7 8 9 |
# File 'lib/ejaydj/track.rb', line 7 def album @album end |
#artist ⇒ Object
Returns the value of attribute artist.
7 8 9 |
# File 'lib/ejaydj/track.rb', line 7 def artist @artist end |
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
7 8 9 |
# File 'lib/ejaydj/track.rb', line 7 def duration_ms @duration_ms end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/ejaydj/track.rb', line 7 def name @name end |
#playlist ⇒ Object
Returns the value of attribute playlist.
7 8 9 |
# File 'lib/ejaydj/track.rb', line 7 def playlist @playlist end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/ejaydj/track.rb', line 7 def url @url end |