Sha256: 0b7ba611b7ae767e2bc0f95198d8211e5772f62f51934f8917514efe2e838539

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Wamp
  module MessageHandler
    # Result
    class Result < Base
      def handle
        validate_received_message
        stored_data.fetch(:handler).call(response)
      end

      def response
        Type::Result.new(args: message.args, kwargs: message.kwargs, details: message.details)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xconn-0.1.0 lib/wamp/message_handler/result.rb