Created
October 12, 2011 16:42
-
-
Save hexatridecimal/1281768 to your computer and use it in GitHub Desktop.
Mo fo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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