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.
155 156 157 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 155 def endpoint_id @endpoint_id end |
#service_sid ⇒ Object
Returns the value of attribute service_sid.
155 156 157 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 155 def service_sid @service_sid end |
Instance Method Details
#_generate_payload ⇒ Object
162 163 164 165 166 167 168 169 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 162 def _generate_payload payload = {} payload['service_sid'] = service_sid if service_sid payload['endpoint_id'] = endpoint_id if endpoint_id payload end |
#_key ⇒ Object
158 159 160 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 158 def _key 'data_sync' end |