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.
28 29 30 31 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 28 def initialize(payload) @name = payload["name"] @category = payload["category"] end |
Instance Attribute Details
#category ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 27 def category @category end |
#name ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 27 def name @name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 32 def to_json( = {}) { "name": @name, "category": @category, }.to_json() end |