Sha256: 8b02f31e90765eac7266a71fee15bf456e3b78ee1d7c2e3ba60977361d1404f8

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

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

      def data
        submodel_at(ZakazkaType, 'Data')
      end

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

        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_zakazka_type.rb
money_s3-0.11.0 lib/money_s3/parsers/msg_zakazka_type.rb