lib/twilio-ruby/jwt/access_token.rb in twilio-ruby-5.0.0.rc16 vs lib/twilio-ruby/jwt/access_token.rb in twilio-ruby-5.0.0.rc17

- old
+ new

@@ -138,8 +138,30 @@ payload end end + class SyncGrant + attr_accessor :service_sid, + :endpoint_id + + def key + 'data_sync' + + end + + def payload + payload = {} + + if service_sid + payload['service_sid'] = service_sid + end + if endpoint_id + payload['endpoint_id'] = endpoint_id + end + + payload + end + end end end -end \ No newline at end of file +end