Class: Twilio::JWT::ClientCapability::IncomingClientScope

Inherits:
Object
  • Object
show all
Includes:
Scope
Defined in:
lib/twilio-ruby/jwt/client_capability.rb

Instance Method Summary collapse

Constructor Details

#initialize(client_name) ⇒ IncomingClientScope

Returns a new instance of IncomingClientScope.



45
46
47
# File 'lib/twilio-ruby/jwt/client_capability.rb', line 45

def initialize(client_name)
  @client_name = client_name
end

Instance Method Details

#_generate_payloadObject



49
50
51
52
53
54
# File 'lib/twilio-ruby/jwt/client_capability.rb', line 49

def _generate_payload
  prefix = 'scope:client:incoming'
  suffix = 'clientName=' + CGI.escape(@client_name.to_s)

  [prefix, suffix].join('?')
end