Class: Twilio::JWT::AccessToken::SyncGrant

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

#endpoint_idObject

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_sidObject

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_payloadObject



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

#_keyObject



158
159
160
# File 'lib/twilio-ruby/jwt/access_token.rb', line 158

def _key
  'data_sync'
end