module Pohoda::Builders::Typ::Groups::MyGroupOfAccount

Public Instance Methods

builder() click to toggle source
# File lib/pohoda/builders/typ/groups/my_group_of_account.rb, line 6
def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  root << build_element('typ:accountNo', data[:account_no], data[:account_no_attributes]) if data.key? :account_no
  root << build_element('typ:bankCode', data[:bank_code], data[:bank_code_attributes]) if data.key? :bank_code

  root
end