Class: City

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/city.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



8
9
10
# File 'app/models/city.rb', line 8

def <=>(other)
  name <=> other.name
end

#to_sObject



12
13
14
# File 'app/models/city.rb', line 12

def to_s
  name
end