Class: WCC::Media::Playlist

Inherits:
Base
  • Object
show all
Defined in:
lib/wcc/media/playlist.rb

Instance Attribute Summary

Attributes inherited from Base

#headers, #raw

Instance Method Summary collapse

Methods inherited from Base

#_links, #id, #initialize, #legacy_id

Methods included from ActiveRecordShim

included

Methods included from Cacheable

#cache_key, hash_cache_key, #last_modified

Constructor Details

This class inherits a constructor from WCC::Media::Base

Instance Method Details

#messagesObject



26
27
28
# File 'lib/wcc/media/playlist.rb', line 26

def messages
  (raw['messages'] || []).map { |val| WCC::Media::Message.new(val) }
end