Class: Twilio::REST::Content::V1::ContentContext::ApprovalCreateList::ContentApprovalRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentContext::ApprovalCreateList::ContentApprovalRequest
- Defined in:
- lib/twilio-ruby/rest/content/v1/content/approval_create.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ContentApprovalRequest
constructor
A new instance of ContentApprovalRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ContentApprovalRequest
Returns a new instance of ContentApprovalRequest.
29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 29 def initialize(payload) @name = payload["name"] @category = payload["category"] @send_ttl_seconds = payload["send_ttl_seconds"] end |
Instance Attribute Details
#category ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 28 def category @category end |
#name ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 28 def name @name end |
#send_ttl_seconds ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 28 def send_ttl_seconds @send_ttl_seconds end |
Instance Method Details
#to_json(options = {}) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 34 def to_json( = {}) { "name": @name, "category": @category, "send_ttl_seconds": @send_ttl_seconds, }.to_json() end |