Class: Twilio::REST::Content::V1::ContentList::AuthenticationAction

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) ⇒ AuthenticationAction

Returns a new instance of AuthenticationAction.



26
27
28
29
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 26

def initialize(payload)
        @type = payload["type"]
        @copy_code_text = payload["copy_code_text"]
end

Instance Attribute Details

#copy_code_textObject

Parameters:



25
26
27
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 25

def copy_code_text
  @copy_code_text
end

#typeObject

Parameters:



25
26
27
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 25

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



30
31
32
33
34
35
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 30

def to_json(options = {})
{
        "type": @type,
        "copy_code_text": @copy_code_text,
}.to_json(options)
end