Sha256: b2b785d6380aa96d16d90368f9b56a8ef29b47e93fa520e33a6dd22317d52ba2

Contents?: true

Size: 711 Bytes

Versions: 9

Compression:

Stored size: 711 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']
        end

        # List of handles running in one session in Janus Instance.
        #
        # @return [Array] List of handles
        def handles
          request['handles']
        end

        # Info to session or handle in Janus Instance
        #
        # @return [Hash] Information to session/handle
        def info
          request['info']
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.0.0.pre.108 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.106 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.101 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.100 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.97 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.96 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.95 lib/rrj/janus/responses/admin.rb
ruby_rabbitmq_janus-2.0.0.pre.42 lib/rrj/janus/responses/admin.rb