Sha256: 38e69eec1eba0e8d1e126e040d72bed0e0df24d720d724e8b38c79857f1aa9ef

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

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

      def data
        submodel_at(Data3, '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_uc_pohyb_type.rb
money_s3-0.11.0 lib/money_s3/parsers/msg_uc_pohyb_type.rb