Sha256: 3a4025fde710263df19ea1007b84fadf01a0daa4d710cad3e3374131ec6f48e9

Contents?: true

Size: 838 Bytes

Versions: 95

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Janus
    module Messages
      # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
      #
      # # Create an standard message
      class Standard < Message
        def initialize(template_request, options = {})
          super(template_request, options)
        rescue
          raise Errors::Janus::MessageStandard::Initializer
        end

        # Return options to message for rabbitmq
        def options
          properties.options
        rescue
          raise Errors::Janus::MessageStandard::Options
        end

        private

        def prepare_request(options)
          @request = Tools::Replaces::Handle.new(request,
                                                 options).transform_request
          super
        end
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-3.0.0.pre.336 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.319 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/rrj/janus/messages/standard.rb