Class: Country

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



10
11
12
# File 'app/models/country.rb', line 10

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

#to_sObject



14
15
16
# File 'app/models/country.rb', line 14

def to_s
  name
end