Sha256: 1836fe166efaa9b209df617bc926c1f51782f19d9154df5921483ee3730a3c1d

Contents?: true

Size: 916 Bytes

Versions: 95

Compression:

Stored size: 916 Bytes

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Janus
    module Responses
      # Response for admin request
      class Admin < Standard
        # List of sessions running in Janus Instance.
        #
        # @return [Array] List of sessions
        def sessions
          request['sessions']
        rescue
          raise Errors::Janus::ResponseAdmin::Sessions
        end

        # List of handles running in one session in Janus Instance.
        #
        # @return [Array] List of handles
        def handles
          request['handles']
        rescue
          raise Errors::Janus::ResponseAdmin::Handles
        end

        # Info to session or handle in Janus Instance
        #
        # @return [Hash] Information to session/handle
        def info
          request['info']
        rescue
          raise Errors::Janus::ResponseAdmin::Info
        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/responses/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.319 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/rrj/janus/responses/admin.rb