Class: PheldItunesTrack

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePheldItunesTrack

Returns a new instance of PheldItunesTrack.



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/pheld_itunes_track.rb', line 14

def initialize
  @track_id = nil
  @name = nil
  @artist = nil
  @album = nil
  @total_time = nil
  @year = nil
  @bit_rate = nil
  @play_count = nil
  @rating = nil
  @date_added = nil
  @genre = nil
end

Instance Attribute Details

#albumObject

Returns the value of attribute album.



5
6
7
# File 'lib/pheld_itunes_track.rb', line 5

def album
  @album
end

#artistObject

Returns the value of attribute artist.



4
5
6
# File 'lib/pheld_itunes_track.rb', line 4

def artist
  @artist
end

#bit_rateObject

Returns the value of attribute bit_rate.



8
9
10
# File 'lib/pheld_itunes_track.rb', line 8

def bit_rate
  @bit_rate
end

#date_addedObject

Returns the value of attribute date_added.



11
12
13
# File 'lib/pheld_itunes_track.rb', line 11

def date_added
  @date_added
end

#genreObject

Returns the value of attribute genre.



12
13
14
# File 'lib/pheld_itunes_track.rb', line 12

def genre
  @genre
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#play_countObject

Returns the value of attribute play_count.



9
10
11
# File 'lib/pheld_itunes_track.rb', line 9

def play_count
  @play_count
end

#ratingObject

Returns the value of attribute rating.



10
11
12
# File 'lib/pheld_itunes_track.rb', line 10

def rating
  @rating
end

#total_timeObject

Returns the value of attribute total_time.



6
7
8
# File 'lib/pheld_itunes_track.rb', line 6

def total_time
  @total_time
end

#track_idObject

Returns the value of attribute track_id.



2
3
4
# File 'lib/pheld_itunes_track.rb', line 2

def track_id
  @track_id
end

#yearObject

Returns the value of attribute year.



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

def year
  @year
end