Class: Twilio::JWT::AccessToken::SyncGrant
- Inherits:
-
Object
- Object
- Twilio::JWT::AccessToken::SyncGrant
- Includes:
- Twilio::JWT::AccessTokenGrant
- Defined in:
- lib/twilio-ruby/jwt/access_token.rb
Instance Attribute Summary collapse
-
#endpoint_id ⇒ Object
Returns the value of attribute endpoint_id.
-
#service_sid ⇒ Object
Returns the value of attribute service_sid.
Instance Method Summary collapse
Instance Attribute Details
#endpoint_id ⇒ Object
Returns the value of attribute endpoint_id.
190 191 192 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 190 def endpoint_id @endpoint_id end |
#service_sid ⇒ Object
Returns the value of attribute service_sid.
190 191 192 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 190 def service_sid @service_sid end |
Instance Method Details
#_generate_payload ⇒ Object
197 198 199 200 201 202 203 204 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 197 def _generate_payload payload = {} payload['service_sid'] = service_sid if service_sid payload['endpoint_id'] = endpoint_id if endpoint_id payload end |
#_key ⇒ Object
193 194 195 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 193 def _key 'data_sync' end |