Class: WCC::Media::TagGroup
- Inherits:
-
Data::EnumeratedType
- Object
- Data::EnumeratedType
- WCC::Media::TagGroup
- Defined in:
- lib/wcc/media/tag_group.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.db ⇒ Object
17 18 19 |
# File 'lib/wcc/media/tag_group.rb', line 17 def self.db TAG_GROUPS end |
Instance Method Details
#matches?(value) ⇒ Boolean
9 10 11 |
# File 'lib/wcc/media/tag_group.rb', line 9 def matches?(value) [id, key, self].include?(value) end |
#tags ⇒ Object
13 14 15 |
# File 'lib/wcc/media/tag_group.rb', line 13 def Tag.where(tag_group_id: id) end |