Class: Osm::Meeting::BadgeLink

Inherits:
Object
  • Object
show all
Includes:
ActiveAttr::Model, ActiveModel::MassAssignmentSecurity
Defined in:
lib/osm/meeting.rb,
lib/osm/meeting.rb

Overview

Ensure the constant exists for the validators

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Initialize a new Meeting::Activity



# File 'lib/osm/meeting.rb', line 383


Instance Attribute Details

#badge_keyString



368
# File 'lib/osm/meeting.rb', line 368

attribute :badge_key, :type => String

#badge_sectionSymbol



368
# File 'lib/osm/meeting.rb', line 368

attribute :badge_key, :type => String

#badge_typeSymbol



368
# File 'lib/osm/meeting.rb', line 368

attribute :badge_key, :type => String

#labelString



368
# File 'lib/osm/meeting.rb', line 368

attribute :badge_key, :type => String

#requirement_keyString



368
# File 'lib/osm/meeting.rb', line 368

attribute :badge_key, :type => String

Instance Method Details

#<=>(another) ⇒ Object

Compare BadgeLink based on title then activity_id



388
389
390
# File 'lib/osm/meeting.rb', line 388

def <=>(another)
  return self.label <=> another.try(:label)
end