Class: Arkaan::Campaigns::Tag
- Inherits:
-
Object
- Object
- Arkaan::Campaigns::Tag
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/campaigns/tag.rb
Overview
A campaign tag is a string describing a characteristic of the campaign it’s in.
Instance Attribute Summary collapse
-
#content ⇒ String
The string content of the tag, describing a characteristic.
-
#count ⇒ Integer
The number of campaigns this tag is in, avoiding a join.
Instance Attribute Details
#content ⇒ String
Returns the string content of the tag, describing a characteristic.
11 |
# File 'lib/arkaan/campaigns/tag.rb', line 11 field :content, type: String |
#count ⇒ Integer
Returns the number of campaigns this tag is in, avoiding a join.
14 |
# File 'lib/arkaan/campaigns/tag.rb', line 14 field :count, type: Integer, default: 1 |