Class: PPE_API::IucnCategory
- Inherits:
-
Object
- Object
- PPE_API::IucnCategory
- Includes:
- HappyMapper
- Defined in:
- lib/ppe_api/iucn_category.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#==(iucn) ⇒ Object
20 21 22 23 |
# File 'lib/ppe_api/iucn_category.rb', line 20 def ==(iucn) return false if iucn.nil? iucn.name==self.name end |
#to_xml(options = {}) ⇒ Object
25 26 27 |
# File 'lib/ppe_api/iucn_category.rb', line 25 def to_xml(={}) self.as_json.to_xml({:root => "iucn-category"}.merge()) end |