class Pohoda::Parsers::Vch::VoucherType

Public Instance Methods

eet() click to toggle source
# File lib/pohoda/parsers/vch/voucher_type.rb, line 19
def eet
  submodel_at(Typ::EETType, 'vch:EET')
end
print() click to toggle source
to_h() click to toggle source
# File lib/pohoda/parsers/vch/voucher_type.rb, line 27
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:voucher_header] = voucher_header.to_h if has? 'vch:voucherHeader'
  hash[:voucher_detail] = voucher_detail.to_h if has? 'vch:voucherDetail'
  hash[:voucher_summary] = voucher_summary.to_h if has? 'vch:voucherSummary'
  hash[:eet] = eet.to_h if has? 'vch:EET'
  hash[:print] = print.map(&:to_h) if has? 'vch:print'

  hash
end
voucher_detail() click to toggle source
# File lib/pohoda/parsers/vch/voucher_type.rb, line 11
def voucher_detail
  submodel_at(Vch::VoucherDetailType, 'vch:voucherDetail')
end
voucher_header() click to toggle source
# File lib/pohoda/parsers/vch/voucher_type.rb, line 7
def voucher_header
  submodel_at(Vch::VoucherHeaderType, 'vch:voucherHeader')
end
voucher_summary() click to toggle source
# File lib/pohoda/parsers/vch/voucher_type.rb, line 15
def voucher_summary
  submodel_at(Vch::VoucherSummaryType, 'vch:voucherSummary')
end