Sha256: 2fbb4357fe2158ba881d9f8c823dc86ff76ee1102fa11525d7db5f2f277b3609

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamTypKusovnik
      include ParserCore::BaseParser

      def typ_kusovnik
        array_of_at(KusovnikType, ['TypKusovnik'])
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:typ_kusovnik] = typ_kusovnik.map(&:to_h) if has? 'TypKusovnik'

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-1.0.0 lib/money_s3/parsers/seznam_typ_kusovnik.rb