Class: Echowrap::Artist

Inherits:
Base
  • Object
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

#discoveryObject (readonly)

Returns the value of attribute discovery.



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

def discovery
  @discovery
end

#familiarityObject (readonly)

Returns the value of attribute familiarity.



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

def familiarity
  @familiarity
end

#hotttnesssObject (readonly)

Returns the value of attribute hotttnesss.



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

def hotttnesss
  @hotttnesss
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#twitterObject (readonly)

Returns the value of attribute twitter.



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

def twitter
  @twitter
end

Instance Method Details

#biographiesArray

Returns:

  • (Array)


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

def biographies
  @biographies ||= map_collection(Echowrap::Biography, :biographies)
end

#blogsArray

Returns:

  • (Array)


13
14
15
# File 'lib/echowrap/artist.rb', line 13

def blogs
  @blogs ||= map_collection(Echowrap::Blog, :blogs)
end

#doc_countsEchowrap::DocCounts

Returns:



18
19
20
# File 'lib/echowrap/artist.rb', line 18

def doc_counts
  @doc_counts ||= Echowrap::DocCounts.new(@attrs[:doc_counts])
end

#foreign_idsArray

Returns:

  • (Array)


28
29
30
# File 'lib/echowrap/artist.rb', line 28

def foreign_ids
  @foreign_ids ||= map_collection(Echowrap::ForeignId, :foreign_ids)
end

#imagesArray

Returns:

  • (Array)


23
24
25
# File 'lib/echowrap/artist.rb', line 23

def images
  @images ||= map_collection(Echowrap::Image, :images)
end

#locationEchowrap::Location

Returns:



33
34
35
# File 'lib/echowrap/artist.rb', line 33

def location
  @location ||= Echowrap::Location.new(@attrs[:artist_location])
end

#newsArray

Returns:

  • (Array)


38
39
40
# File 'lib/echowrap/artist.rb', line 38

def news
  @news ||= map_collection(Echowrap::NewsArticle, :news)
end

#reviewsArray

Returns:

  • (Array)


43
44
45
# File 'lib/echowrap/artist.rb', line 43

def reviews
  @reviews ||= map_collection(Echowrap::Review, :reviews)
end

#songsArray

Returns:

  • (Array)


48
49
50
# File 'lib/echowrap/artist.rb', line 48

def songs
  @songs ||= map_collection(Echowrap::Song, :songs)
end

#termsArray

Returns:

  • (Array)


53
54
55
# File 'lib/echowrap/artist.rb', line 53

def terms
  @terms ||= map_collection(Echowrap::Term, :terms)
end

#urlsEchowrap::Urls

Returns:



58
59
60
# File 'lib/echowrap/artist.rb', line 58

def urls
  @urls ||= Echowrap::Urls.new(@attrs[:urls])
end

#videoArray

Returns:

  • (Array)


63
64
65
# File 'lib/echowrap/artist.rb', line 63

def video
  @video ||= map_collection(Echowrap::Video, :video)
end

#years_activeArray

Returns:

  • (Array)


68
69
70
# File 'lib/echowrap/artist.rb', line 68

def years_active
  @years_active ||= map_collection(Echowrap::YearsActive, :years_active)
end