Class: Twilio::JWT::AccessToken::VoiceGrant
- Inherits:
-
Object
- Object
- Twilio::JWT::AccessToken::VoiceGrant
- Includes:
- Twilio::JWT::AccessTokenGrant
- Defined in:
- lib/twilio-ruby/jwt/access_token.rb
Instance Attribute Summary collapse
-
#endpoint_id ⇒ Object
Returns the value of attribute endpoint_id.
-
#incoming_allow ⇒ Object
Returns the value of attribute incoming_allow.
-
#outgoing_application_params ⇒ Object
Returns the value of attribute outgoing_application_params.
-
#outgoing_application_sid ⇒ Object
Returns the value of attribute outgoing_application_sid.
-
#push_credential_sid ⇒ Object
Returns the value of attribute push_credential_sid.
Instance Method Summary collapse
Instance Attribute Details
#endpoint_id ⇒ Object
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 |
#incoming_allow ⇒ Object
Returns the value of attribute incoming_allow.
119 120 121 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119 def incoming_allow @incoming_allow end |
#outgoing_application_params ⇒ Object
Returns the value of attribute outgoing_application_params.
119 120 121 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119 def outgoing_application_params @outgoing_application_params end |
#outgoing_application_sid ⇒ Object
Returns the value of attribute outgoing_application_sid.
119 120 121 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 119 def outgoing_application_sid @outgoing_application_sid end |
#push_credential_sid ⇒ Object
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 |
Instance Method Details
#_generate_payload ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 129 def _generate_payload payload = {} payload[:incoming] = { allow: true } if incoming_allow == true if outgoing_application_sid outgoing = {} outgoing[:application_sid] = outgoing_application_sid if outgoing_application_params outgoing[:params] = outgoing_application_params end payload[:outgoing] = outgoing end if push_credential_sid payload[:push_credential_sid] = push_credential_sid end payload[:endpoint_id] = endpoint_id if endpoint_id payload end |
#_key ⇒ Object
125 126 127 |
# File 'lib/twilio-ruby/jwt/access_token.rb', line 125 def _key 'voice' end |