Class: AreaCN::Province

Inherits:
Area
  • Object
show all
Defined in:
lib/area_cn/area.rb

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

#ancestorsObject



61
62
63
# File 'lib/area_cn/area.rb', line 61

def ancestors
  [self]
end