Class: Twilio::JWT::ClientCapability::IncomingClientScope
- Inherits:
-
Object
- Object
- Twilio::JWT::ClientCapability::IncomingClientScope
- Includes:
- Scope
- Defined in:
- lib/twilio-ruby/jwt/client_capability.rb
Instance Method Summary collapse
- #_generate_payload ⇒ Object
-
#initialize(client_name) ⇒ IncomingClientScope
constructor
A new instance of IncomingClientScope.
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_payload ⇒ Object
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 |