Sha256: 02b0f255d405445d12a237d619587793ddd4b25cfe3d43b2006c416ce96a2960

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

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

      def nepritomnost
        array_of_at(MessageType, ['Nepritomnost'])
      end

      def data
        submodel_at(Data8, 'Data')
      end

      def to_h_with_attrs
        hash = ParserCore::HashWithAttributes.new({}, attributes)

        hash[:nepritomnost] = nepritomnost.map(&:to_h_with_attrs) if has? 'Nepritomnost'
        hash[:data] = data.to_h_with_attrs if has? 'Data'

        hash
        super.merge(hash)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/msg_mzda_type.rb
money_s3-0.11.0 lib/money_s3/parsers/msg_mzda_type.rb