class Osm::Activity::File

Public Instance Methods

<=>(another) click to toggle source

Compare File based on activity_id then name

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