--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Converts the resource to an XML string representation.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Options
- !ruby/struct:SM::Flow::P 
  body: The <tt>options</tt> parameter is handed off to the <tt>to_xml</tt> method on each attribute, so it has the same options as the <tt>to_xml</tt> methods in Active Support.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:indent</tt> - Set the indent level for the XML output (default is +2+).
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:dasherize</tt> - Boolean option to determine whether or not element names should replace underscores with dashes. Default is <tt>true</tt>. The default can be set to <tt>false</tt> by setting the module attribute <tt>ActiveSupport.dasherize_xml = false</tt> in an initializer. Because save uses this method, and there are no options on save, then you will have to set the default if you don't want underscores in element names to become dashes when the resource is saved. This is important when integrating with non-Rails applications.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:camelize</tt> - Boolean option to determine whether or not element names should be converted to camel case, e.g some_name to SomeName. Default is <tt>false</tt>. Like <tt>:dasherize</tt> you can change the default by setting the module attribute <tt>ActiveSupport.camelise_xml = true</tt> in an initializer.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:skip_instruct</tt> - Toggle skipping the +instruct!+ call on the XML builder that generates the XML declaration (default is <tt>false</tt>).
  type: :BULLET
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  my_group = SubsidiaryGroup.find(:first)\n  my_group.to_xml\n  # =&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n  #    &lt;subsidiary_group&gt; [...] &lt;/subsidiary_group&gt;\n\n  my_group.to_xml(:dasherize =&gt; true)\n  # =&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n  #    &lt;subsidiary-group&gt; [...] &lt;/subsidiary-group&gt;\n\n  my_group.to_xml(:skip_instruct =&gt; true)\n  # =&gt; &lt;subsidiary_group&gt; [...] &lt;/subsidiary_group&gt;\n"
full_name: ActiveResource::Base#to_xml
is_singleton: false
name: to_xml
params: (options={})
visibility: public
