Class: Mityc::Geoportal::Province
- Inherits:
-
Object
- Object
- Mityc::Geoportal::Province
- Includes:
- HTTParty, HappyMapper
- Defined in:
- lib/mityc-geoportal/province.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.all ⇒ Object
19 20 21 |
# File 'lib/mityc-geoportal/province.rb', line 19 def all @provinces ||= self.parse(provinces_xml) end |
Instance Method Details
#cities ⇒ Object
10 11 12 |
# File 'lib/mityc-geoportal/province.rb', line 10 def cities @cities ||= Mityc::Geoportal::City.by_province(self.id) end |
#name ⇒ Object
14 15 16 |
# File 'lib/mityc-geoportal/province.rb', line 14 def name @name.strip end |