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