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.



174
175
176
# File 'lib/twilio-ruby/jwt/access_token.rb', line 174

def room
  @room
end

Instance Method Details

#_generate_payloadObject



180
181
182
183
184
185
186
# File 'lib/twilio-ruby/jwt/access_token.rb', line 180

def _generate_payload
  payload = {}

  payload[:room] = room if room

  payload
end

#_keyObject



176
177
178
# File 'lib/twilio-ruby/jwt/access_token.rb', line 176

def _key
  'video'
end