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

Instance Method Details

#phoneObject

National dialing code / or International



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

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

#postalObject



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

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