class Pohoda::Parsers::Typ::MyAddress

Public Instance Methods

address() click to toggle source
# File lib/pohoda/parsers/typ/my_address.rb, line 7
def address
  submodel_at(Typ::AddressInternetType, 'typ:address')
end
establishment() click to toggle source
# File lib/pohoda/parsers/typ/my_address.rb, line 11
def establishment
  submodel_at(Typ::EstablishmentType, 'typ:establishment')
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/my_address.rb, line 15
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:address] = address.to_h if has? 'typ:address'
  hash[:establishment] = establishment.to_h if has? 'typ:establishment'

  hash
end