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