class Osm::Badge::RequirementModule
Public Instance Methods
<=>(another)
click to toggle source
Compare Badge::RequirementModule
based on badge then letter
# File lib/osm/badge.rb, line 499 def <=>(another) result = self.badge <=> another.try(:badge) result = self.letter <=> another.try(:letter) if result == 0 result = self.id <=> another.try(:id) if result == 0 return result end
inspect()
click to toggle source
# File lib/osm/badge.rb, line 506 def inspect Osm.inspect_instance(self, {:replace_with => {'badge' => :identifier}}) end