Class: WCC::Media::Tag

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

#tag_groupObject



23
24
25
26
27
# File 'lib/wcc/media/tag.rb', line 23

def tag_group
  return unless (key = raw.dig('tag_group', 'key'))

  WCC::Media::TagGroup[key.to_sym]
end