Sha256: 1b82c637c4cc89143554cd9fd6599f75e5a83182bac9072e2558ddd7a616e3d2

Contents?: true

Size: 730 Bytes

Versions: 7

Compression:

Stored size: 730 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
        # Return options to message for rabbitmq
        def options
          properties.options
        rescue => error
          raise Errors::JanusMessagePropertie, error
        end

        private

        # Transform raw request in request to janus, so replace element <string>, <number>
        # and other with real value
        def prepare_request(options)
          @request = Tools::Replaces::Standard.new(request, options).transform_request
          super
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-1.1.9 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-1.1.8 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-1.1.7 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-1.1.6 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-1.1.5 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-1.1.4 lib/rrj/janus/messages/standard.rb
ruby_rabbitmq_janus-1.1.3 lib/rrj/janus/messages/standard.rb