Class: Twilio::JWT::AccessToken::IpMessagingGrant
- Inherits:
-
Object
- Object
- Twilio::JWT::AccessToken::IpMessagingGrant
- Extended by:
- Gem::Deprecate
- Includes:
- Twilio::JWT::AccessTokenGrant
- Defined in:
- lib/twilio-ruby/jwt/access_token.rb
Instance Attribute Summary collapse
-
#deployment_role_sid ⇒ Object
Returns the value of attribute deployment_role_sid.
-
#endpoint_id ⇒ Object
Returns the value of attribute endpoint_id.
-
#push_credential_sid ⇒ Object
Returns the value of attribute push_credential_sid.
-
#service_sid ⇒ Object
Returns the value of attribute service_sid.
Instance Method Summary collapse
Instance Attribute Details
#deployment_role_sid ⇒ Object
Returns the value of attribute deployment_role_sid.
112 113 114 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 112 def deployment_role_sid @deployment_role_sid end |
#endpoint_id ⇒ Object
Returns the value of attribute endpoint_id.
112 113 114 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 112 def endpoint_id @endpoint_id end |
#push_credential_sid ⇒ Object
Returns the value of attribute push_credential_sid.
112 113 114 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 112 def push_credential_sid @push_credential_sid end |
#service_sid ⇒ Object
Returns the value of attribute service_sid.
112 113 114 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 112 def service_sid @service_sid end |
Instance Method Details
#_generate_payload ⇒ Object
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 121 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 |
#_key ⇒ Object
117 118 119 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 117 def _key 'ip_messaging' end |