Class: PPE_API::Country
- Inherits:
-
Object
- Object
- PPE_API::Country
- Includes:
- HappyMapper
- Defined in:
- lib/ppe_api/country.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#geometry_json ⇒ Object
16 17 18 |
# File 'lib/ppe_api/country.rb', line 16 def geometry_json JSON.parse(@the_geom) end |
#to_xml(options = {}) ⇒ Object
26 27 28 |
# File 'lib/ppe_api/country.rb', line 26 def to_xml(={}) self.as_json.to_xml({:root => "country"}.merge()) end |