class Pohoda::Builders::Bka::CurrencyBankAccountType

Public Instance Methods

builder() click to toggle source
# File lib/pohoda/builders/bka/currency_bank_account_type.rb, line 7
def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  if data.key? :currency
    root << Typ::RefType.new('bka:currency', data[:currency]).builder
  end
  root << build_element('bka:rate', data[:rate], data[:rate_attributes]) if data.key? :rate

  root
end