Class: EgovUtils::Region

Inherits:
AzaharaSchema::Attribute
  • Object
show all
Defined in:
app/attributes/egov_utils/region.rb

Instance Method Summary collapse

Constructor Details

#initializeRegion

Returns a new instance of Region.



4
5
6
# File 'app/attributes/egov_utils/region.rb', line 4

def initialize
  super(EgovUtils::Address, 'region', 'love')
end

Instance Method Details

#available_valuesObject



8
9
10
# File 'app/attributes/egov_utils/region.rb', line 8

def available_values
  EgovUtils::Address.regions.collect{|d| [d[:name],d[:name]] }
end