class Pohoda::Builders::Ord::OrderSummaryType
Public Instance Methods
builder()
click to toggle source
# File lib/pohoda/builders/ord/order_summary_type.rb, line 7 def builder root = Ox::Element.new(name) root = add_attributes_and_namespaces(root) root << build_element('ord:roundingDocument', data[:rounding_document], data[:rounding_document_attributes]) if data.key? :rounding_document root << build_element('ord:roundingVAT', data[:rounding_vat], data[:rounding_vat_attributes]) if data.key? :rounding_vat root << build_element('ord:typeCalculateVATInclusivePrice', data[:type_calculate_vat_inclusive_price], data[:type_calculate_vat_inclusive_price_attributes]) if data.key? :type_calculate_vat_inclusive_price if data.key? :home_currency root << Typ::TypeCurrencyHome.new('ord:homeCurrency', data[:home_currency]).builder end if data.key? :foreign_currency root << Typ::TypeCurrencyForeign.new('ord:foreignCurrency', data[:foreign_currency]).builder end root end