class Pohoda::Parsers::Typ::Address
Public Instance Methods
address()
click to toggle source
# File lib/pohoda/parsers/typ/address.rb, line 19 def address submodel_at(Typ::AddressType, 'typ:address') end
ext_id()
click to toggle source
# File lib/pohoda/parsers/typ/address.rb, line 15 def ext_id array_of_at(Typ::ExtIdType, ['typ:extId']) end
id()
click to toggle source
# File lib/pohoda/parsers/typ/address.rb, line 7 def id at 'typ:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/typ/address.rb, line 11 def id_attributes attributes_at 'typ:id' end
ship_to_address()
click to toggle source
# File lib/pohoda/parsers/typ/address.rb, line 23 def ship_to_address array_of_at(Typ::ShipToAddressType, ['typ:shipToAddress']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/typ/address.rb, line 27 def to_h hash = {} hash[:attributes] = attributes hash[:id] = id if has? 'typ:id' hash[:id_attributes] = id_attributes if has? 'typ:id' hash[:ext_id] = ext_id.map(&:to_h) if has? 'typ:extId' hash[:address] = address.to_h if has? 'typ:address' hash[:ship_to_address] = ship_to_address.map(&:to_h) if has? 'typ:shipToAddress' hash end