Method: OldApiResource::Base#to_xml
- Defined in:
- lib/old_api_resource/base.rb
#to_xml(options = {}) ⇒ Object
Methods for serialization as json or xml, relying on the serializable_hash method
453 454 455 |
# File 'lib/old_api_resource/base.rb', line 453 def to_xml( = {}) self.serializable_hash().to_xml(:root => self.class.element_name) end |