Sha256: 84942e0e4667b8e380cc28ec462442bb8db0f465bcd25d428ae6a3bc3e5d703f

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

module MoneyS3
  module Parsers
    class MsgKmKartaType < MessageType
      include ParserCore::BaseParser

      def komponenta
        array_of_at(MsgKomponentaType, ['Komponenta'])
      end

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

        hash[:komponenta] = komponenta.map(&:to_h) if has? 'Komponenta'

        hash
        super.merge(hash)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/msg_km_karta_type.rb
money_s3-2.4.0 lib/money_s3/parsers/msg_km_karta_type.rb
money_s3-2.3.0 lib/money_s3/parsers/msg_km_karta_type.rb
money_s3-2.2.0 lib/money_s3/parsers/msg_km_karta_type.rb
money_s3-2.1.0 lib/money_s3/parsers/msg_km_karta_type.rb
money_s3-2.0.0 lib/money_s3/parsers/msg_km_karta_type.rb