Class: Province

Inherits:
Object
  • Object
show all
Defined in:
lib/china_district_code/models/province.rb

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code.



2
3
4
# File 'lib/china_district_code/models/province.rb', line 2

def code
  @code
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/china_district_code/models/province.rb', line 2

def name
  @name
end