class Pohoda::Parsers::Typ::AddressType

Public Instance Methods

city() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 31
def city
  at 'typ:city'
end
city_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 35
def city_attributes
  attributes_at 'typ:city'
end
company() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 7
def company
  at 'typ:company'
end
company_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 11
def company_attributes
  attributes_at 'typ:company'
end
country() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 87
def country
  submodel_at(Typ::RefType, 'typ:country')
end
dic() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 63
def dic
  at 'typ:dic'
end
dic_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 67
def dic_attributes
  attributes_at 'typ:dic'
end
division() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 15
def division
  at 'typ:division'
end
division_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 19
def division_attributes
  attributes_at 'typ:division'
end
email() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 115
def email
  at 'typ:email'
end
email_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 119
def email_attributes
  attributes_at 'typ:email'
end
fax() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 107
def fax
  at 'typ:fax'
end
fax_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 111
def fax_attributes
  attributes_at 'typ:fax'
end
ic_dph() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 79
def ic_dph
  at 'typ:icDph'
end
ic_dph_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 83
def ic_dph_attributes
  attributes_at 'typ:icDph'
end
ico() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 55
def ico
  at 'typ:ico'
end
ico_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 59
def ico_attributes
  attributes_at 'typ:ico'
end
mobil_phone() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 99
def mobil_phone
  at 'typ:mobilPhone'
end
mobil_phone_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 103
def mobil_phone_attributes
  attributes_at 'typ:mobilPhone'
end
name() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 23
def name
  at 'typ:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 27
def name_attributes
  attributes_at 'typ:name'
end
phone() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 91
def phone
  at 'typ:phone'
end
phone_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 95
def phone_attributes
  attributes_at 'typ:phone'
end
street() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 39
def street
  at 'typ:street'
end
street_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 43
def street_attributes
  attributes_at 'typ:street'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 123
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:company] = company if has? 'typ:company'
  hash[:company_attributes] = company_attributes if has? 'typ:company'
  hash[:division] = division if has? 'typ:division'
  hash[:division_attributes] = division_attributes if has? 'typ:division'
  hash[:name] = name if has? 'typ:name'
  hash[:name_attributes] = name_attributes if has? 'typ:name'
  hash[:city] = city if has? 'typ:city'
  hash[:city_attributes] = city_attributes if has? 'typ:city'
  hash[:street] = street if has? 'typ:street'
  hash[:street_attributes] = street_attributes if has? 'typ:street'
  hash[:zip] = zip if has? 'typ:zip'
  hash[:zip_attributes] = zip_attributes if has? 'typ:zip'
  hash[:ico] = ico if has? 'typ:ico'
  hash[:ico_attributes] = ico_attributes if has? 'typ:ico'
  hash[:dic] = dic if has? 'typ:dic'
  hash[:dic_attributes] = dic_attributes if has? 'typ:dic'
  hash[:vat_payer_type] = vat_payer_type if has? 'typ:VATPayerType'
  hash[:vat_payer_type_attributes] = vat_payer_type_attributes if has? 'typ:VATPayerType'
  hash[:ic_dph] = ic_dph if has? 'typ:icDph'
  hash[:ic_dph_attributes] = ic_dph_attributes if has? 'typ:icDph'
  hash[:country] = country.to_h if has? 'typ:country'
  hash[:phone] = phone if has? 'typ:phone'
  hash[:phone_attributes] = phone_attributes if has? 'typ:phone'
  hash[:mobil_phone] = mobil_phone if has? 'typ:mobilPhone'
  hash[:mobil_phone_attributes] = mobil_phone_attributes if has? 'typ:mobilPhone'
  hash[:fax] = fax if has? 'typ:fax'
  hash[:fax_attributes] = fax_attributes if has? 'typ:fax'
  hash[:email] = email if has? 'typ:email'
  hash[:email_attributes] = email_attributes if has? 'typ:email'

  hash
end
vat_payer_type() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 71
def vat_payer_type
  at 'typ:VATPayerType'
end
vat_payer_type_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 75
def vat_payer_type_attributes
  attributes_at 'typ:VATPayerType'
end
zip() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 47
def zip
  at 'typ:zip'
end
zip_attributes() click to toggle source
# File lib/pohoda/parsers/typ/address_type.rb, line 51
def zip_attributes
  attributes_at 'typ:zip'
end