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_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:pok_dokl] = pok_dokl.map(&:to_h_with_attrs) if has? 'PokDokl' hash end end end end