Class: Echowrap::Playlist

Inherits:
Base
  • Object
show all
Defined in:
lib/echowrap/playlist.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

#actual_history_lengthObject (readonly)

Returns the value of attribute actual_history_length.



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

def actual_history_length
  @actual_history_length
end

#api_keyObject (readonly)

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#banned_artist_idsObject (readonly)

Returns the value of attribute banned_artist_ids.



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

def banned_artist_ids
  @banned_artist_ids
end

#banned_song_idsObject (readonly)

Returns the value of attribute banned_song_ids.



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

def banned_song_ids
  @banned_song_ids
end

#contraintsObject (readonly)

Returns the value of attribute contraints.



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

def contraints
  @contraints
end

#favorited_artist_idsObject (readonly)

Returns the value of attribute favorited_artist_ids.



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

def favorited_artist_ids
  @favorited_artist_ids
end

#favorited_song_idsObject (readonly)

Returns the value of attribute favorited_song_ids.



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

def favorited_song_ids
  @favorited_song_ids
end

#favorites_mapObject (readonly)

Returns the value of attribute favorites_map.



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

def favorites_map
  @favorites_map
end

#historyObject (readonly)

Returns the value of attribute history.



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

def history
  @history
end

#invalid_artist_idsObject (readonly)

Returns the value of attribute invalid_artist_ids.



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

def invalid_artist_ids
  @invalid_artist_ids
end

#invalid_songsObject (readonly)

Returns the value of attribute invalid_songs.



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

def invalid_songs
  @invalid_songs
end

#playlist_scoreObject (readonly)

Returns the value of attribute playlist_score.



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

def playlist_score
  @playlist_score
end

#ratings_mapObject (readonly)

Returns the value of attribute ratings_map.



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

def ratings_map
  @ratings_map
end

#restart_request_idsObject (readonly)

Returns the value of attribute restart_request_ids.



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

def restart_request_ids
  @restart_request_ids
end

#rules_retriesObject (readonly)

Returns the value of attribute rules_retries.



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

def rules_retries
  @rules_retries
end

#rules_runObject (readonly)

Returns the value of attribute rules_run.



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

def rules_run
  @rules_run
end

#rules_runtimeObject (readonly)

Returns the value of attribute rules_runtime.



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

def rules_runtime
  @rules_runtime
end

#session_idObject (readonly)

Returns the value of attribute session_id.



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

def session_id
  @session_id
end

#skipped_songsObject (readonly)

Returns the value of attribute skipped_songs.



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

def skipped_songs
  @skipped_songs
end

#song_scoresObject (readonly)

Returns the value of attribute song_scores.



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

def song_scores
  @song_scores
end

Instance Method Details

#call_listArray

Returns:

  • (Array)


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

def call_list
  @call_list ||= map_collection(Echowrap::CallList, :call_list)
end

#category_mapEchowrap::CategoryMap



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

def category_map
  @category_map ||= Echowrap::CategoryMap.new(@attrs[:category_map])
end

#lookaheadArray

Returns:

  • (Array)


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

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

#optionsEchowrap::Options

Returns:



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

def options
  @options ||= Echowrap::Options.new(@attrs[:options])
end

#rulesArray

Returns:

  • (Array)


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

def rules
  @rules ||= map_collection(Echowrap::Rule, :rules)
end

#seedsEchowrap::Seeds

Returns:



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

def seeds
  @seeds ||= Echowrap::Seeds.new(@attrs[:seeds])
end

#songsArray

Returns:

  • (Array)


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

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