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
-
#bid_amount ⇒ String
Maximum price per 1,000 message deliveries, expressed in the WABA currency's smallest unit (cents for USD).
- #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
-
#send_ttl_seconds ⇒ String
Time-to-live in seconds for attempting to send a message with this Content.
- #status ⇒ String
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, content_sid: nil) ⇒ ApprovalCreateInstance
Initialize the ApprovalCreateInstance
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 253 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'], 'send_ttl_seconds' => payload['send_ttl_seconds'], 'bid_amount' => payload['bid_amount'], } end |
Instance Method Details
#allow_category_change ⇒ Boolean
303 304 305 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 303 def allow_category_change @properties['allow_category_change'] end |
#bid_amount ⇒ String
Returns Maximum price per 1,000 message deliveries, expressed in the WABA currency's smallest unit (cents for USD). Only set for MARKETING templates onboarded to Max Pricing.
315 316 317 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 315 def bid_amount @properties['bid_amount'] end |
#category ⇒ String
279 280 281 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 279 def category @properties['category'] end |
#content_type ⇒ String
285 286 287 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 285 def content_type @properties['content_type'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
327 328 329 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 327 def inspect "<Twilio.Content.V1.ApprovalCreateInstance>" end |
#name ⇒ String
273 274 275 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 273 def name @properties['name'] end |
#rejection_reason ⇒ String
297 298 299 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 297 def rejection_reason @properties['rejection_reason'] end |
#send_ttl_seconds ⇒ String
Returns Time-to-live in seconds for attempting to send a message with this Content.
309 310 311 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 309 def send_ttl_seconds @properties['send_ttl_seconds'] end |
#status ⇒ String
291 292 293 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 291 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
321 322 323 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 321 def to_s "<Twilio.Content.V1.ApprovalCreateInstance>" end |