Class: City

Inherits:
USA::Record show all
Includes:
USA::Seeded
Defined in:
app/models/city.rb

Overview

A city, town or census designated place: what a street address is addressed to.

Constant Summary

Constants included from USA::Seeded

USA::Seeded::SLICE

Instance Method Summary collapse

Methods inherited from USA::Record

table_name_prefix

Instance Method Details

#to_s ⇒ String

Returns the default representation (used in views).

Returns:

  • (String) —

    the default representation (used in views).



15
# File 'app/models/city.rb', line 15

def to_s = "#{name} (#{state.code})"