class Pohoda::Parsers::Vch::VoucherDetailType

Public Instance Methods

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

  hash[:voucher_item] = voucher_item.map(&:to_h) if has? 'vch:voucherItem'
  hash[:voucher_liquidation_item] = voucher_liquidation_item.map(&:to_h) if has? 'vch:voucherLiquidationItem'

  hash
end
voucher_item() click to toggle source
# File lib/pohoda/parsers/vch/voucher_detail_type.rb, line 7
def voucher_item
  array_of_at(Vch::VoucherItemType, ['vch:voucherItem'])
end
voucher_liquidation_item() click to toggle source
# File lib/pohoda/parsers/vch/voucher_detail_type.rb, line 11
def voucher_liquidation_item
  array_of_at(Vch::VoucherliquidationItemType, ['vch:voucherLiquidationItem'])
end