Class: WCC::Media::Message

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

Constructor Details

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

Instance Method Details

#seriesObject



50
51
52
# File 'lib/wcc/media/message.rb', line 50

def series
  WCC::Media::Series.new(raw['series']) if raw['series']
end

#speakersObject



33
34
35
# File 'lib/wcc/media/message.rb', line 33

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

#tagsObject



37
38
39
# File 'lib/wcc/media/message.rb', line 37

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