class Pohoda::Parsers::Idp::Address2

Public Instance Methods

ext_id() click to toggle source
# File lib/pohoda/parsers/idp/address2.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'idp:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/idp/address2.rb, line 7
def id
  at 'idp:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/idp/address2.rb, line 11
def id_attributes
  attributes_at 'idp:id'
end
to_h() click to toggle source
# File lib/pohoda/parsers/idp/address2.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'idp:id'
  hash[:id_attributes] = id_attributes if has? 'idp:id'
  hash[:ext_id] = ext_id.to_h if has? 'idp:extId'

  hash
end