Class: Osm::Meeting::BadgeLink
- Inherits:
-
Object
- Object
- Osm::Meeting::BadgeLink
- 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
-
#badge_key ⇒ String
The badge being done.
-
#badge_section ⇒ Symbol
The section type that the badge belongs to.
-
#badge_type ⇒ Symbol
The type of badge.
-
#label ⇒ String
Human firendly label for the badge and requirement.
-
#requirement_key ⇒ String
The requirement being done.
Instance Method Summary collapse
-
#<=>(another) ⇒ Object
Compare BadgeLink based on title then activity_id.
-
#initialize ⇒ Object
constructor
Initialize a new Meeting::Activity.
Constructor Details
#initialize ⇒ Object
Initialize a new Meeting::Activity
|
# File 'lib/osm/meeting.rb', line 383
|
Instance Attribute Details
#badge_key ⇒ String
Returns the badge being done.
368 |
# File 'lib/osm/meeting.rb', line 368 attribute :badge_key, :type => String |
#badge_section ⇒ Symbol
Returns the section type that the badge belongs to.
368 |
# File 'lib/osm/meeting.rb', line 368 attribute :badge_key, :type => String |
#badge_type ⇒ Symbol
Returns the type of badge.
368 |
# File 'lib/osm/meeting.rb', line 368 attribute :badge_key, :type => String |
#label ⇒ String
Returns human firendly label for the badge and requirement.
368 |
# File 'lib/osm/meeting.rb', line 368 attribute :badge_key, :type => String |
#requirement_key ⇒ String
Returns the requirement being done.
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 |