Sha256: 1f336666bfb94098aad7b1c26c02f9736029ca6533c7c809d12441e85a0a6a35

Contents?: true

Size: 375 Bytes

Versions: 6

Compression:

Stored size: 375 Bytes

Contents

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

      def osoba
        array_of_at(MessageType, ['Osoba'])
      end

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

        hash[:osoba] = osoba.map(&:to_h) if has? 'Osoba'

        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_firma_type.rb
money_s3-2.4.0 lib/money_s3/parsers/msg_firma_type.rb
money_s3-2.3.0 lib/money_s3/parsers/msg_firma_type.rb
money_s3-2.2.0 lib/money_s3/parsers/msg_firma_type.rb
money_s3-2.1.0 lib/money_s3/parsers/msg_firma_type.rb
money_s3-2.0.0 lib/money_s3/parsers/msg_firma_type.rb