Class: Twilio::REST::Content::V1::ContentList::AuthenticationAction
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::AuthenticationAction
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ AuthenticationAction
constructor
A new instance of AuthenticationAction.
- #to_json(options = {}) ⇒ Object
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_text ⇒ Object
25 26 27 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 25 def copy_code_text @copy_code_text end |
#type ⇒ Object
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( = {}) { "type": @type, "copy_code_text": @copy_code_text, }.to_json() end |