Class: Echowrap::Song

Inherits:
Base
  • Object
show all
Defined in:
lib/echowrap/song.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/song.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/song.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/song.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/song.rb', line 5

def artist_name
  @artist_name
end

#attributesObject (readonly)

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

#scoreObject (readonly)

Returns the value of attribute score.



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

def score
  @score
end

#song_currencyObject (readonly)

Returns the value of attribute song_currency.



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

def song_currency
  @song_currency
end

#song_discoveryObject (readonly)

Returns the value of attribute song_discovery.



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

def song_discovery
  @song_discovery
end

#song_hotttnesssObject (readonly)

Returns the value of attribute song_hotttnesss.



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

def song_hotttnesss
  @song_hotttnesss
end

#song_typeObject (readonly)

Returns the value of attribute song_type.



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

def song_type
  @song_type
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

Instance Method Details

#artist_locationEchowrap::ArtistLocation

Returns:

  • (Echowrap::ArtistLocation)


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

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

#audio_summaryEchowrap::AudioSummary



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

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

#tracksArray

Returns:

  • (Array)


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

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