require 'money_s3/parsers/base_parser' require 'money_s3/parsers/pok_dokl' module MoneyS3 module Parsers class SeznamPokDokl include BaseParser def pok_dokl array_of_at(PokDokl, ['PokDokl']) end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:pok_dokl] = pok_dokl.map(&:to_h) if has? 'PokDokl' hash end end end end