class Osm::Activity::Badge
Public Instance Methods
<=>(another)
click to toggle source
Compare BadgeLink based on section, type, badge_name, requirement_label, data
# File lib/osm/activity.rb, line 367 def <=>(another) [:badge_section, :badge_type, :badge_name, :requirement_label].each do |attribute| result = self.try(:data) <=> another.try(:data) return result unless result == 0 end return self.try(:data) <=> another.try(:data) end