Class: OpenVidu::Token

Inherits:
Base
  • Object
show all
Defined in:
lib/open_vidu/token.rb

Overview

Token

Constant Summary collapse

ASSIGNABLE_PARAMS =
%w[session role data kurentoOptions].freeze
GENERATED_PARAMS =
%w[id token].freeze
ALL_PARAMS =
(ASSIGNABLE_PARAMS + GENERATED_PARAMS).freeze

Instance Attribute Summary

Attributes inherited from Base

#server

Instance Method Summary collapse

Methods inherited from Base

content_key, #create_params, #initialize

Constructor Details

This class inherits a constructor from OpenVidu::Base

Instance Method Details

#createObject



8
9
10
11
12
# File 'lib/open_vidu/token.rb', line 8

def create
  OpenVidu::Command.new(
    :token, :post, 'api/tokens', create_params, options: { server: server }
  ).execute
end