Class: WCC::Media::Message
- Inherits:
-
Base
- Object
- Base
- WCC::Media::Message
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
included
Methods included from Cacheable
#cache_key, hash_cache_key
Instance Method Details
#series ⇒ Object
50
51
52
|
# File 'lib/wcc/media/message.rb', line 50
def series
WCC::Media::Series.new(raw['series']) if raw['series']
end
|
#speakers ⇒ Object
33
34
35
|
# File 'lib/wcc/media/message.rb', line 33
def speakers
(raw['speakers'] || []).map { |val| WCC::Media::Speaker.new(val) }
end
|
37
38
39
|
# File 'lib/wcc/media/message.rb', line 37
def tags
(raw['tags'] || []).map { |val| WCC::Media::Tag.new(val) }
end
|