Class: Region

Inherits:
Object
  • Object
show all
Includes:
Geopolitocracy, Mongoid::Document
Defined in:
app/models/region.rb

Overview

Region/Province/Estado

Instance Method Summary collapse

Methods included from Geopolitocracy

#ensure_slug, #slug=, #to_s

Instance Method Details

#phoneObject

National dialing code / or International



24
25
26
# File 'app/models/region.rb', line 24

def phone
  self[:phone] || nation.phone
end

#postalObject



28
29
30
# File 'app/models/region.rb', line 28

def postal
  self[:postal] || nation.postal
end