Class: ItunesController::DummyItunesTrack

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, databaseId, name) ⇒ DummyItunesTrack

Returns a new instance of DummyItunesTrack.



26
27
28
29
30
# File 'lib/itunesController/dummy_itunes_track.rb', line 26

def initialize(location,databaseId,name)
    @location = location
    @databaseID = databaseId
    @name = name
end

Instance Attribute Details

#databaseIDObject

Returns the value of attribute databaseID.



24
25
26
# File 'lib/itunesController/dummy_itunes_track.rb', line 24

def databaseID
  @databaseID
end

#locationObject

Returns the value of attribute location.



24
25
26
# File 'lib/itunesController/dummy_itunes_track.rb', line 24

def location
  @location
end

#nameObject

Returns the value of attribute name.



24
25
26
# File 'lib/itunesController/dummy_itunes_track.rb', line 24

def name
  @name
end

Instance Method Details

#refreshObject



32
33
# File 'lib/itunesController/dummy_itunes_track.rb', line 32

def refresh
end

#to_sObject



35
36
37
# File 'lib/itunesController/dummy_itunes_track.rb', line 35

def to_s
    return "Location: '#{@location}' - Database ID: #{@databaseID} - Name: '#{@name}' "
end