class MingleEvents::Feed::Category
An Atom category, with a term and a scheme. Note that an Atom event can have any number of categories, including zero. All current Mingle categories are also defined here, as constants.
Constants
- ATTACHMENT_ADDITION
Category
for any event that includes the addition of an attachment to a card or page- ATTACHMENT_REMOVAL
Category
for any event that includes the removal of an attachment from a card or page- ATTACHMENT_REPLACEMENT
Category
for any event that includes the replacement of an attachment on a card or page- CARD
Category
for any event sourced by a card- CARD_COPIED_FROM
Category
for any event that is the copy of a card from one project to another- CARD_CREATION
Category
for any event that is the creation of a new card- CARD_DELETION
Category
for any event that is the deletion of a card- CARD_KEYWORDS_CHANGE
- CARD_TYPE_AND_PROPERTY_DISASSOCIATION
- CARD_TYPE_CHANGE
Category
for any event that includes the change of a card’s type- CARD_TYPE_DELETION
- CARD_TYPE_RENAME
- COMMENT_ADDITION
Category
for any event that includes the commenting on a card- DESCRIPTION_CHANGE
Category
for any event that includes a card or page description/content change- MANAGED_PROPERTY_VALUE_CHANGE
For correction events:
- MINGLE_SCHEME
The Atom category scheme for all Mingle categories
- NAME_CHANGE
Category
for any event that includes a card or page name change- NUMERIC_PRECISION_CHANGE
- PAGE
Category
for any event sourced by a wiki page- PAGE_CREATION
Category
for any event that is the creation of a new wiki page- PROPERTY_CHANGE
Category
for any event that includes the change of a card’s property value- PROPERTY_DELETION
- PROPERTY_RENAME
- REPOSITORY_SETTINGS_CHANGE
- REVISION_COMMIT
Category
for any event that is a revision or changeset commit- SYSTEM_COMMENT_ADDITION
Category
for any event that incldues the Mingle server’s adding a comment to a card- TAG_ADDITION
Category
for any event that includes the tagging of a card or page- TAG_REMOVAL
Category
for any event that includes the removal of a tag from a card or page- TAG_RENAME
Attributes
The category’s scheme
The category’s term
Public Class Methods
lookup a category by the text value of the term (mingle scheme is assumed)
# File lib/mingle_events/feed/category.rb 23 def self.for_mingle_term(mingle_term) 24 @@categories_by_mingle_term[mingle_term] 25 end
# File lib/mingle_events/feed/category.rb 16 def initialize(term, scheme) 17 @term = term 18 @scheme = scheme 19 @@categories_by_mingle_term[term] = self 20 end
Public Instance Methods
# File lib/mingle_events/feed/category.rb 31 def ==(other) 32 other.is_a?(Category) && other.term == self.term && other.scheme == self.scheme 33 end
# File lib/mingle_events/feed/category.rb 39 def eql?(other) 40 self == other 41 end
# File lib/mingle_events/feed/category.rb 35 def hash 36 term.hash ^ scheme.hash 37 end
# File lib/mingle_events/feed/category.rb 27 def to_s 28 term 29 end