Sha256: 231a85ce0ddefb8b9c3765fb6e94ae34ca981800b09883118f02dcde82ff899c

Contents?: true

Size: 473 Bytes

Versions: 43

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

require 'rrj/janus/responses/response'

module RubyRabbitmqJanus
  module Janus
    module Responses
      # Janus Instanece response.
      class JanusInstance < Response
        def event
          'JanusInstance update'
        end

        def id
          request['id']
        end

        def instance
          JanusInstance.find(id)
        end

        def enable
          request['enable']
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.319 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.306 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.305 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.302 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.297 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.296 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.286 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.285 lib/rrj/janus/responses/janus_instance.rb
ruby_rabbitmq_janus-2.7.2.pre.284 lib/rrj/janus/responses/janus_instance.rb