class Pohoda::Parsers::Typ::SettingsSourceDocumentType

Public Instance Methods

to_h() click to toggle source
# File lib/pohoda/parsers/typ/settings_source_document_type.rb, line 15
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:link_order_to_advance_invoice] = link_order_to_advance_invoice if has? 'typ:linkOrderToAdvanceInvoice'
  hash[:link_order_to_advance_invoice_attributes] = link_order_to_advance_invoice_attributes if has? 'typ:linkOrderToAdvanceInvoice'

  hash
end