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 377

Instance Attribute Details

#badge_keyString



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

attribute :badge_key, :type => String

#badge_sectionSymbol



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

attribute :badge_key, :type => String

#badge_typeSymbol



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

attribute :badge_key, :type => String

#labelString



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

attribute :badge_key, :type => String

#requirement_keyString



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

attribute :badge_key, :type => String

Instance Method Details

#<=>(another) ⇒ Object

Compare BadgeLink based on title then activity_id



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

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