Class: Twilio::REST::Content::V1::ContentList::WhatsappAuthentication

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionsObject

Parameters:



532
533
534
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 532

def actions
  @actions
end

#add_security_recommendationObject

Parameters:



532
533
534
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 532

def add_security_recommendation
  @add_security_recommendation
end

#code_expiration_minutesObject

Parameters:



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(options = {})
{
        "add_security_recommendation": @add_security_recommendation,
        "code_expiration_minutes": @code_expiration_minutes,
        "actions": @actions,
}.to_json(options)
end