Class: Echowrap::Item

Inherits:
Base
  • Object
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_familiarityObject (readonly)

Returns the value of attribute artist_familiarity.



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

def artist_familiarity
  @artist_familiarity
end

#artist_hotttnesssObject (readonly)

Returns the value of attribute artist_hotttnesss.



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

def artist_hotttnesss
  @artist_hotttnesss
end

#artist_idObject (readonly)

Returns the value of attribute artist_id.



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

def artist_id
  @artist_id
end

#artist_nameObject (readonly)

Returns the value of attribute artist_name.



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

def artist_name
  @artist_name
end

#date_addedObject (readonly)

Returns the value of attribute date_added.



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

def date_added
  @date_added
end

#foreign_idObject (readonly)

Returns the value of attribute foreign_id.



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

def foreign_id
  @foreign_id
end

#last_modifiedObject (readonly)

Returns the value of attribute last_modified.



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

def last_modified
  @last_modified
end

#play_countObject (readonly)

Returns the value of attribute play_count.



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

def play_count
  @play_count
end

#song_hotttnesssObject (readonly)

Returns the value of attribute song_hotttnesss.



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

def song_hotttnesss
  @song_hotttnesss
end

#song_idObject (readonly)

Returns the value of attribute song_id.



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

def song_id
  @song_id
end

#song_nameObject (readonly)

Returns the value of attribute song_name.



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

def song_name
  @song_name
end

#song_typeObject (readonly)

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_locationEchowrap::ArtistLocation

Returns:

  • (Echowrap::ArtistLocation)


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

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

#audio_summaryEchowrap::AudioSummary



15
16
17
# File 'lib/echowrap/item.rb', line 15

def audio_summary
  @audio_summary ||= Echowrap::AudioSummary.new(@attrs[:audio_summary])
end

#biographiesArray

Returns:

  • (Array)


20
21
22
# File 'lib/echowrap/item.rb', line 20

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

#blogsArray

Returns:

  • (Array)


25
26
27
# File 'lib/echowrap/item.rb', line 25

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

#doc_countsEchowrap::DocCounts

Returns:



30
31
32
# File 'lib/echowrap/item.rb', line 30

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

#foreign_idsArray

Returns:

  • (Array)


35
36
37
# File 'lib/echowrap/item.rb', line 35

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

#imagesArray

Returns:

  • (Array)


40
41
42
# File 'lib/echowrap/item.rb', line 40

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

#locationEchowrap::Location

Returns:



45
46
47
# File 'lib/echowrap/item.rb', line 45

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

#newsArray

Returns:

  • (Array)


50
51
52
# File 'lib/echowrap/item.rb', line 50

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

#requestEchowrap::ItemRequest



55
56
57
# File 'lib/echowrap/item.rb', line 55

def request
  @request ||= Echowrap::ItemRequest.new(@attrs[:request])
end

#reviewsArray

Returns:

  • (Array)


60
61
62
# File 'lib/echowrap/item.rb', line 60

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

#songsArray

Returns:

  • (Array)


65
66
67
# File 'lib/echowrap/item.rb', line 65

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

#termsArray

Returns:

  • (Array)


70
71
72
# File 'lib/echowrap/item.rb', line 70

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

#tracksArray

Returns:

  • (Array)


75
76
77
# File 'lib/echowrap/item.rb', line 75

def tracks
  @tracks ||= map_collection(Echowrap::Track, :tracks)
end

#urlsEchowrap::Urls

Returns:



80
81
82
# File 'lib/echowrap/item.rb', line 80

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

#videoArray

Returns:

  • (Array)


85
86
87
# File 'lib/echowrap/item.rb', line 85

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

#years_activeArray

Returns:

  • (Array)


90
91
92
# File 'lib/echowrap/item.rb', line 90

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