Class: Twilio::REST::Content::V1::ContentContext::ApprovalCreateInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Content::V1::ContentContext::ApprovalCreateInstance
- Defined in:
- lib/twilio-ruby/rest/content/v1/content/approval_create.rb
Instance Method Summary collapse
- #allow_category_change ⇒ Boolean
- #category ⇒ String
- #content_type ⇒ String
-
#initialize(version, payload, content_sid: nil) ⇒ ApprovalCreateInstance
constructor
Initialize the ApprovalCreateInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #name ⇒ String
- #rejection_reason ⇒ String
- #status ⇒ String
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, content_sid: nil) ⇒ ApprovalCreateInstance
Initialize the ApprovalCreateInstance
115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 115 def initialize(version, payload , content_sid: nil) super(version) # Marshaled Properties @properties = { 'name' => payload['name'], 'category' => payload['category'], 'content_type' => payload['content_type'], 'status' => payload['status'], 'rejection_reason' => payload['rejection_reason'], 'allow_category_change' => payload['allow_category_change'], } end |
Instance Method Details
#allow_category_change ⇒ Boolean
162 163 164 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 162 def allow_category_change @properties['allow_category_change'] end |
#category ⇒ String
138 139 140 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 138 def category @properties['category'] end |
#content_type ⇒ String
144 145 146 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 144 def content_type @properties['content_type'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
174 175 176 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 174 def inspect "<Twilio.Content.V1.ApprovalCreateInstance>" end |
#name ⇒ String
132 133 134 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 132 def name @properties['name'] end |
#rejection_reason ⇒ String
156 157 158 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 156 def rejection_reason @properties['rejection_reason'] end |
#status ⇒ String
150 151 152 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 150 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
168 169 170 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 168 def to_s "<Twilio.Content.V1.ApprovalCreateInstance>" end |