Class: Twilio::REST::Content::V1::ContentList::WhatsappAuthentication
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::WhatsappAuthentication
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ WhatsappAuthentication
constructor
A new instance of WhatsappAuthentication.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ WhatsappAuthentication
Returns a new instance of WhatsappAuthentication.
533 534 535 536 537 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 533 def initialize(payload) @add_security_recommendation = payload["add_security_recommendation"] @code_expiration_minutes = payload["code_expiration_minutes"] @actions = payload["actions"] end |
Instance Attribute Details
#actions ⇒ Object
532 533 534 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 532 def actions @actions end |
#add_security_recommendation ⇒ Object
532 533 534 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 532 def add_security_recommendation @add_security_recommendation end |
#code_expiration_minutes ⇒ Object
532 533 534 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 532 def code_expiration_minutes @code_expiration_minutes end |
Instance Method Details
#to_json(options = {}) ⇒ Object
538 539 540 541 542 543 544 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 538 def to_json( = {}) { "add_security_recommendation": @add_security_recommendation, "code_expiration_minutes": @code_expiration_minutes, "actions": @actions, }.to_json() end |