Class: Arkaan::Campaigns::Tag

Inherits:
Object
  • Object
show all
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.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

Returns the string content of the tag, describing a characteristic.

Returns:

  • (String)

    the string content of the tag, describing a characteristic.



13
# File 'lib/arkaan/campaigns/tag.rb', line 13

field :content, type: String

#countInteger

Returns the number of campaigns this tag is in, avoiding a join.

Returns:

  • (Integer)

    the number of campaigns this tag is in, avoiding a join.



16
# File 'lib/arkaan/campaigns/tag.rb', line 16

field :count, type: Integer, default: 1