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

#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



46
47
48
# File 'lib/wcc/media/message.rb', line 46

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

#speakersObject



29
30
31
# File 'lib/wcc/media/message.rb', line 29

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

#tagsObject



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

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