class Pohoda::Parsers::Lst::ListVoucherType

Public Instance Methods

to_h() click to toggle source
Calls superclass method
# File lib/pohoda/parsers/lst/list_voucher_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:voucher] = voucher.map(&:to_h) if has? 'lst:voucher'

  hash
  super.merge(hash)
end
voucher() click to toggle source
# File lib/pohoda/parsers/lst/list_voucher_type.rb, line 7
def voucher
  array_of_at(Vch::VoucherType, ['lst:voucher'])
end