class Pohoda::Builders::Idp::Address2

Public Instance Methods

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

  root << build_element('idp:id', data[:id], data[:id_attributes]) if data.key? :id
  if data.key? :ext_id
    root << Typ::ExtIdType.new('idp:extId', data[:ext_id]).builder
  end

  root
end