Class: Twilio::REST::Webhooks::V1::SettingList::InlineAuthValue
- Inherits:
-
Object
- Object
- Twilio::REST::Webhooks::V1::SettingList::InlineAuthValue
- 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) ⇒ InlineAuthValue
constructor
A new instance of InlineAuthValue.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ InlineAuthValue
Returns a new instance of InlineAuthValue.
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 33 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
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def audience @audience end |
#client_credentials_auth_method ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def client_credentials_auth_method @client_credentials_auth_method end |
#client_id ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def client_id @client_id end |
#client_secret ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def client_secret @client_secret end |
#password ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def password @password end |
#scheme ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def scheme @scheme end |
#scope ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def scope @scope end |
#token_url ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def token_url @token_url end |
#username ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 44 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 |