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


190
191
192
# File 'lib/twilio-ruby/jwt/access_token.rb', line 190

def endpoint_id
  @endpoint_id
end

#service_sidObject

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_payloadObject


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

#_keyObject


193
194
195
# File 'lib/twilio-ruby/jwt/access_token.rb', line 193

def _key
  'data_sync'
end