module MoneyS3 module Parsers class SeznamKmKarta include ParserCore::BaseParser def km_karta array_of_at(KmKarta, ['KmKarta']) end def to_h hash = {} hash[:attributes] = attributes hash[:km_karta] = km_karta.map(&:to_h) if has? 'KmKarta' hash end end end end