Class: ItunesController::Track
- Inherits:
-
Object
- Object
- ItunesController::Track
- Defined in:
- lib/itunesController/track.rb
Overview
Used to store track information
Instance Attribute Summary collapse
-
#databaseId ⇒ Object
Returns the value of attribute databaseId.
-
#location ⇒ Object
Returns the value of attribute location.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(location, databaseId, title) ⇒ Track
constructor
A new instance of Track.
- #to_s ⇒ Object
Constructor Details
#initialize(location, databaseId, title) ⇒ Track
Returns a new instance of Track.
28 29 30 31 32 |
# File 'lib/itunesController/track.rb', line 28 def initialize(location,databaseId,title) @location = location @databaseId = databaseId @title = title end |
Instance Attribute Details
#databaseId ⇒ Object
Returns the value of attribute databaseId.
26 27 28 |
# File 'lib/itunesController/track.rb', line 26 def databaseId @databaseId end |
#location ⇒ Object
Returns the value of attribute location.
26 27 28 |
# File 'lib/itunesController/track.rb', line 26 def location @location end |
#title ⇒ Object
Returns the value of attribute title.
26 27 28 |
# File 'lib/itunesController/track.rb', line 26 def title @title end |
Instance Method Details
#to_s ⇒ Object
34 35 36 |
# File 'lib/itunesController/track.rb', line 34 def to_s return "Location: '#{@location}' - Database ID: #{@databaseId} - Title: '#{@title}' " end |