require_relative 'base' class WCC::Media::Tag < WCC::Media::Base active_record_shim do endpoint 'tags' filters %w[ name_like ] end def id raw['id']&.to_s end def legacy_id raw['legacy_id']&.to_s end %w[ name ].each do |att| define_method att do raw[att] end end end