Class: Twilio::JWT::AccessToken::IpMessagingGrant

Inherits:
Object
  • Object
show all
Extended by:
Gem::Deprecate
Includes:
Twilio::JWT::AccessTokenGrant
Defined in:
lib/twilio-ruby/jwt/access_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deployment_role_sidObject

Returns the value of attribute deployment_role_sid


119
120
121
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119

def deployment_role_sid
  @deployment_role_sid
end

#endpoint_idObject

Returns the value of attribute endpoint_id


119
120
121
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119

def endpoint_id
  @endpoint_id
end

#push_credential_sidObject

Returns the value of attribute push_credential_sid


119
120
121
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119

def push_credential_sid
  @push_credential_sid
end

#service_sidObject

Returns the value of attribute service_sid


119
120
121
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119

def service_sid
  @service_sid
end

Instance Method Details

#_generate_payloadObject


128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/twilio-ruby/jwt/access_token.rb', line 128

def _generate_payload
  payload = {}

  payload[:service_sid] = service_sid if service_sid

  payload[:endpoint_id] = endpoint_id if endpoint_id

  if deployment_role_sid
    payload[:deployment_role_sid] = deployment_role_sid
  end

  if push_credential_sid
    payload[:push_credential_sid] = push_credential_sid
  end

  payload
end

#_keyObject


124
125
126
# File 'lib/twilio-ruby/jwt/access_token.rb', line 124

def _key
  'ip_messaging'
end