Class: Echowrap::Artist
- Inherits:
-
Base
- Object
- Base
- Echowrap::Artist
show all
- Defined in:
- lib/echowrap/artist.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
#discovery ⇒ Object
Returns the value of attribute discovery.
5
6
7
|
# File 'lib/echowrap/artist.rb', line 5
def discovery
@discovery
end
|
#familiarity ⇒ Object
Returns the value of attribute familiarity.
5
6
7
|
# File 'lib/echowrap/artist.rb', line 5
def familiarity
@familiarity
end
|
#hotttnesss ⇒ Object
Returns the value of attribute hotttnesss.
5
6
7
|
# File 'lib/echowrap/artist.rb', line 5
def hotttnesss
@hotttnesss
end
|
#id ⇒ Object
Returns the value of attribute id.
5
6
7
|
# File 'lib/echowrap/artist.rb', line 5
def id
@id
end
|
#name ⇒ Object
Returns the value of attribute name.
5
6
7
|
# File 'lib/echowrap/artist.rb', line 5
def name
@name
end
|
Returns the value of attribute twitter.
5
6
7
|
# File 'lib/echowrap/artist.rb', line 5
def
@twitter
end
|
Instance Method Details
#biographies ⇒ Array
8
9
10
|
# File 'lib/echowrap/artist.rb', line 8
def biographies
@biographies ||= map_collection(Echowrap::Biography, :biographies)
end
|
#blogs ⇒ Array
13
14
15
|
# File 'lib/echowrap/artist.rb', line 13
def blogs
@blogs ||= map_collection(Echowrap::Blog, :blogs)
end
|
18
19
20
|
# File 'lib/echowrap/artist.rb', line 18
def doc_counts
@doc_counts ||= Echowrap::DocCounts.new(@attrs[:doc_counts])
end
|
#foreign_ids ⇒ Array
28
29
30
|
# File 'lib/echowrap/artist.rb', line 28
def foreign_ids
@foreign_ids ||= map_collection(Echowrap::ForeignId, :foreign_ids)
end
|
#images ⇒ Array
23
24
25
|
# File 'lib/echowrap/artist.rb', line 23
def images
@images ||= map_collection(Echowrap::Image, :images)
end
|
33
34
35
|
# File 'lib/echowrap/artist.rb', line 33
def location
@location ||= Echowrap::Location.new(@attrs[:artist_location])
end
|
#news ⇒ Array
38
39
40
|
# File 'lib/echowrap/artist.rb', line 38
def news
@news ||= map_collection(Echowrap::NewsArticle, :news)
end
|
#reviews ⇒ Array
43
44
45
|
# File 'lib/echowrap/artist.rb', line 43
def reviews
@reviews ||= map_collection(Echowrap::Review, :reviews)
end
|
#songs ⇒ Array
48
49
50
|
# File 'lib/echowrap/artist.rb', line 48
def songs
@songs ||= map_collection(Echowrap::Song, :songs)
end
|
#terms ⇒ Array
53
54
55
|
# File 'lib/echowrap/artist.rb', line 53
def terms
@terms ||= map_collection(Echowrap::Term, :terms)
end
|
58
59
60
|
# File 'lib/echowrap/artist.rb', line 58
def urls
@urls ||= Echowrap::Urls.new(@attrs[:urls])
end
|
#video ⇒ Array
63
64
65
|
# File 'lib/echowrap/artist.rb', line 63
def video
@video ||= map_collection(Echowrap::Video, :video)
end
|
#years_active ⇒ Array
68
69
70
|
# File 'lib/echowrap/artist.rb', line 68
def years_active
@years_active ||= map_collection(Echowrap::YearsActive, :years_active)
end
|