Class: Echowrap::Item
- Inherits:
-
Base
- Object
- Base
- Echowrap::Item
show all
- Defined in:
- lib/echowrap/item.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#==, attr_reader, #attrs, #initialize, #update
Constructor Details
This class inherits a constructor from Echowrap::Base
Instance Attribute Details
#artist_familiarity ⇒ Object
Returns the value of attribute artist_familiarity.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def artist_familiarity
@artist_familiarity
end
|
#artist_hotttnesss ⇒ Object
Returns the value of attribute artist_hotttnesss.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def artist_hotttnesss
@artist_hotttnesss
end
|
#artist_id ⇒ Object
Returns the value of attribute artist_id.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def artist_id
@artist_id
end
|
#artist_name ⇒ Object
Returns the value of attribute artist_name.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def artist_name
@artist_name
end
|
#date_added ⇒ Object
Returns the value of attribute date_added.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def date_added
@date_added
end
|
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def foreign_id
@foreign_id
end
|
#last_modified ⇒ Object
Returns the value of attribute last_modified.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def last_modified
@last_modified
end
|
#play_count ⇒ Object
Returns the value of attribute play_count.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def play_count
@play_count
end
|
#song_hotttnesss ⇒ Object
Returns the value of attribute song_hotttnesss.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def song_hotttnesss
@song_hotttnesss
end
|
#song_id ⇒ Object
Returns the value of attribute song_id.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def song_id
@song_id
end
|
#song_name ⇒ Object
Returns the value of attribute song_name.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def song_name
@song_name
end
|
#song_type ⇒ Object
Returns the value of attribute song_type.
5
6
7
|
# File 'lib/echowrap/item.rb', line 5
def song_type
@song_type
end
|
Instance Method Details
#artist_location ⇒ Echowrap::ArtistLocation
10
11
12
|
# File 'lib/echowrap/item.rb', line 10
def artist_location
@artist_location ||= Echowrap::Location.new(@attrs[:artist_location])
end
|
15
16
17
|
# File 'lib/echowrap/item.rb', line 15
def audio_summary
@audio_summary ||= Echowrap::AudioSummary.new(@attrs[:audio_summary])
end
|
#biographies ⇒ Array
20
21
22
|
# File 'lib/echowrap/item.rb', line 20
def biographies
@biographies ||= map_collection(Echowrap::Biography, :biographies)
end
|
#blogs ⇒ Array
25
26
27
|
# File 'lib/echowrap/item.rb', line 25
def blogs
@blogs ||= map_collection(Echowrap::Blog, :blogs)
end
|
30
31
32
|
# File 'lib/echowrap/item.rb', line 30
def doc_counts
@doc_counts ||= Echowrap::DocCounts.new(@attrs[:doc_counts])
end
|
#foreign_ids ⇒ Array
35
36
37
|
# File 'lib/echowrap/item.rb', line 35
def foreign_ids
@foreign_ids ||= map_collection(Echowrap::ForeignId, :foreign_ids)
end
|
#images ⇒ Array
40
41
42
|
# File 'lib/echowrap/item.rb', line 40
def images
@images ||= map_collection(Echowrap::Image, :images)
end
|
45
46
47
|
# File 'lib/echowrap/item.rb', line 45
def location
@location ||= Echowrap::Location.new(@attrs[:artist_location])
end
|
#news ⇒ Array
50
51
52
|
# File 'lib/echowrap/item.rb', line 50
def news
@news ||= map_collection(Echowrap::NewsArticle, :news)
end
|
55
56
57
|
# File 'lib/echowrap/item.rb', line 55
def request
@request ||= Echowrap::ItemRequest.new(@attrs[:request])
end
|
#reviews ⇒ Array
60
61
62
|
# File 'lib/echowrap/item.rb', line 60
def reviews
@reviews ||= map_collection(Echowrap::Review, :reviews)
end
|
#songs ⇒ Array
65
66
67
|
# File 'lib/echowrap/item.rb', line 65
def songs
@songs ||= map_collection(Echowrap::Song, :songs)
end
|
#terms ⇒ Array
70
71
72
|
# File 'lib/echowrap/item.rb', line 70
def terms
@terms ||= map_collection(Echowrap::Term, :terms)
end
|
#tracks ⇒ Array
75
76
77
|
# File 'lib/echowrap/item.rb', line 75
def tracks
@tracks ||= map_collection(Echowrap::Track, :tracks)
end
|
80
81
82
|
# File 'lib/echowrap/item.rb', line 80
def urls
@urls ||= Echowrap::Urls.new(@attrs[:urls])
end
|
#video ⇒ Array
85
86
87
|
# File 'lib/echowrap/item.rb', line 85
def video
@video ||= map_collection(Echowrap::Video, :video)
end
|
#years_active ⇒ Array
90
91
92
|
# File 'lib/echowrap/item.rb', line 90
def years_active
@years_active ||= map_collection(Echowrap::YearsActive, :years_active)
end
|