Class: Twilio::REST::Webhooks::V1::SettingList::PostInlineAuthValue
- Inherits:
-
Object
- Object
- Twilio::REST::Webhooks::V1::SettingList::PostInlineAuthValue
- Defined in:
- lib/twilio-ruby/rest/webhooks/v1/setting.rb,
lib/twilio-ruby/rest/webhooks/v1/setting.rb
Instance Attribute Summary collapse
- #audience ⇒ Object
- #client_credentials_auth_method ⇒ Object
- #client_id ⇒ Object
- #client_secret ⇒ Object
- #password ⇒ Object
- #scheme ⇒ Object
- #scope ⇒ Object
- #token_url ⇒ Object
- #username ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ PostInlineAuthValue
constructor
A new instance of PostInlineAuthValue.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ PostInlineAuthValue
Returns a new instance of PostInlineAuthValue.
105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 105 def initialize(payload) @scheme = payload["scheme"] @token_url = payload["token_url"] @client_id = payload["client_id"] @client_secret = payload["client_secret"] @scope = payload["scope"] @audience = payload["audience"] @client_credentials_auth_method = payload["client_credentials_auth_method"] @username = payload["username"] @password = payload["password"] end |
Instance Attribute Details
#audience ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def audience @audience end |
#client_credentials_auth_method ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def client_credentials_auth_method @client_credentials_auth_method end |
#client_id ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def client_id @client_id end |
#client_secret ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def client_secret @client_secret end |
#password ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def password @password end |
#scheme ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def scheme @scheme end |
#scope ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def scope @scope end |
#token_url ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def token_url @token_url end |
#username ⇒ Object
104 105 106 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 104 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 116 def to_json( = {}) { "scheme": @scheme, "tokenUrl": @token_url, "clientId": @client_id, "clientSecret": @client_secret, "scope": @scope, "audience": @audience, "clientCredentialsAuthMethod": @client_credentials_auth_method, "username": @username, "password": @password, }.to_json() end |