Class: Echowrap::Playlist
Instance Attribute Summary collapse
-
#actual_history_length ⇒ Object
readonly
Returns the value of attribute actual_history_length.
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#banned_artist_ids ⇒ Object
readonly
Returns the value of attribute banned_artist_ids.
-
#banned_song_ids ⇒ Object
readonly
Returns the value of attribute banned_song_ids.
-
#contraints ⇒ Object
readonly
Returns the value of attribute contraints.
-
#favorited_artist_ids ⇒ Object
readonly
Returns the value of attribute favorited_artist_ids.
-
#favorited_song_ids ⇒ Object
readonly
Returns the value of attribute favorited_song_ids.
-
#favorites_map ⇒ Object
readonly
Returns the value of attribute favorites_map.
-
#history ⇒ Object
readonly
Returns the value of attribute history.
-
#invalid_artist_ids ⇒ Object
readonly
Returns the value of attribute invalid_artist_ids.
-
#invalid_songs ⇒ Object
readonly
Returns the value of attribute invalid_songs.
-
#playlist_score ⇒ Object
readonly
Returns the value of attribute playlist_score.
-
#ratings_map ⇒ Object
readonly
Returns the value of attribute ratings_map.
-
#restart_request_ids ⇒ Object
readonly
Returns the value of attribute restart_request_ids.
-
#rules_retries ⇒ Object
readonly
Returns the value of attribute rules_retries.
-
#rules_run ⇒ Object
readonly
Returns the value of attribute rules_run.
-
#rules_runtime ⇒ Object
readonly
Returns the value of attribute rules_runtime.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#skipped_songs ⇒ Object
readonly
Returns the value of attribute skipped_songs.
-
#song_scores ⇒ Object
readonly
Returns the value of attribute song_scores.
Instance Method Summary collapse
- #call_list ⇒ Array
- #category_map ⇒ Echowrap::CategoryMap
- #lookahead ⇒ Array
- #options ⇒ Echowrap::Options
- #rules ⇒ Array
- #seeds ⇒ Echowrap::Seeds
- #songs ⇒ Array
Methods inherited from Base
#==, attr_reader, #attrs, #initialize, #update
Constructor Details
This class inherits a constructor from Echowrap::Base
Instance Attribute Details
#actual_history_length ⇒ Object (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_key ⇒ Object (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_ids ⇒ Object (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_ids ⇒ Object (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 |
#contraints ⇒ Object (readonly)
Returns the value of attribute contraints.
5 6 7 |
# File 'lib/echowrap/playlist.rb', line 5 def contraints @contraints end |
#favorited_artist_ids ⇒ Object (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_ids ⇒ Object (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_map ⇒ Object (readonly)
Returns the value of attribute favorites_map.
5 6 7 |
# File 'lib/echowrap/playlist.rb', line 5 def favorites_map @favorites_map end |
#history ⇒ Object (readonly)
Returns the value of attribute history.
5 6 7 |
# File 'lib/echowrap/playlist.rb', line 5 def history @history end |
#invalid_artist_ids ⇒ Object (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_songs ⇒ Object (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_score ⇒ Object (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_map ⇒ Object (readonly)
Returns the value of attribute ratings_map.
5 6 7 |
# File 'lib/echowrap/playlist.rb', line 5 def @ratings_map end |
#restart_request_ids ⇒ Object (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_retries ⇒ Object (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_run ⇒ Object (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_runtime ⇒ Object (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_id ⇒ Object (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_songs ⇒ Object (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_scores ⇒ Object (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_list ⇒ Array
13 14 15 |
# File 'lib/echowrap/playlist.rb', line 13 def call_list @call_list ||= map_collection(Echowrap::CallList, :call_list) end |
#category_map ⇒ Echowrap::CategoryMap
18 19 20 |
# File 'lib/echowrap/playlist.rb', line 18 def category_map @category_map ||= Echowrap::CategoryMap.new(@attrs[:category_map]) end |
#lookahead ⇒ Array
23 24 25 |
# File 'lib/echowrap/playlist.rb', line 23 def lookahead @lookahead ||= map_collection(Echowrap::Song, :lookahead) end |
#options ⇒ Echowrap::Options
28 29 30 |
# File 'lib/echowrap/playlist.rb', line 28 def @options ||= Echowrap::Options.new(@attrs[:options]) end |
#rules ⇒ Array
33 34 35 |
# File 'lib/echowrap/playlist.rb', line 33 def rules @rules ||= map_collection(Echowrap::Rule, :rules) end |
#seeds ⇒ Echowrap::Seeds
38 39 40 |
# File 'lib/echowrap/playlist.rb', line 38 def seeds @seeds ||= Echowrap::Seeds.new(@attrs[:seeds]) end |