Class: Twilio::JWT::AccessToken::VideoGrant

Inherits:
Object
  • Object
show all
Includes:
Twilio::JWT::AccessTokenGrant
Defined in:
lib/twilio-ruby/jwt/access_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#roomObject

Returns the value of attribute room


233
234
235
# File 'lib/twilio-ruby/jwt/access_token.rb', line 233

def room
  @room
end

Instance Method Details

#_generate_payloadObject


239
240
241
242
243
244
245
# File 'lib/twilio-ruby/jwt/access_token.rb', line 239

def _generate_payload
  payload = {}

  payload[:room] = room if room

  payload
end

#_keyObject


235
236
237
# File 'lib/twilio-ruby/jwt/access_token.rb', line 235

def _key
  'video'
end