Class: AreaCN::District
Instance Attribute Summary
Attributes inherited from Area
Instance Method Summary collapse
Methods inherited from Area
#<=>, #children_codes, #children_names, #city?, #code, #district?, #initialize, #parent_code, #province?, #to_hash, #to_json
Constructor Details
This class inherits a constructor from AreaCN::Area
Instance Method Details
#ancestors ⇒ Object
86 87 88 |
# File 'lib/area_cn/area.rb', line 86 def ancestors [self, parent, parent.parent] end |