class Osm::Activity::Version

Public Instance Methods

<=>(another) click to toggle source

Compare Version based on activity_id then version

# File lib/osm/activity.rb, line 409
def <=>(another)
  result = self.activity_id <=> another.try(:activity_id)
  result = self.version <=> another.try(:version) if result == 0
  return result
end