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