Skip to content

Instantly share code, notes, and snippets.

@hexatridecimal
Created October 12, 2011 16:42
Show Gist options
  • Save hexatridecimal/1281768 to your computer and use it in GitHub Desktop.
Save hexatridecimal/1281768 to your computer and use it in GitHub Desktop.
Mo fo
# Adds information about the customer
def add_arb_customer(xml, options)
customer = options[:customer]
return unless customer
xml.tag!('customer') do
xml.tag! 'type' ,customer[:type] if customer[:type]
xml.tag! 'id' ,customer[:id] if customer[:id]
xml.tag! 'email' ,customer[:email] if customer[:email]
xml.tag! 'phoneNumber' ,customer[:phone_number] if customer[:phone_number]
xml.tag! 'faxNumber' ,customer[:fax_number] if customer[:fax_number]
xml.tag! 'taxId' ,customer[:tax_id] if customer[:tax_id]
add_arb_drivers_license xml ,options
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment