Class: Mityc::Geoportal::Province

Inherits:
Object
  • Object
show all
Includes:
HTTParty, HappyMapper
Defined in:
lib/mityc-geoportal/province.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allObject



19
20
21
# File 'lib/mityc-geoportal/province.rb', line 19

def all
  @provinces ||= self.parse(provinces_xml)
end

Instance Method Details

#citiesObject



10
11
12
# File 'lib/mityc-geoportal/province.rb', line 10

def cities
  @cities ||= Mityc::Geoportal::City.by_province(self.id)
end

#nameObject



14
15
16
# File 'lib/mityc-geoportal/province.rb', line 14

def name
  @name.strip
end