Class: Twilio::REST::Content::V1::ContentContext::ApprovalCreateList::ContentApprovalUpdateRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content/approval_create.rb,
lib/twilio-ruby/rest/content/v1/content/approval_create.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ContentApprovalUpdateRequest

Returns a new instance of ContentApprovalUpdateRequest.



49
50
51
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 49

def initialize(payload)
        @bid_amount = payload["bid_amount"]
end

Instance Attribute Details

#bid_amount ⇒ Object

Parameters:

  • : (bid_amount) —

    [String] Maximum price per 1,000 message deliveries, expressed in the WABA currency's smallest unit (cents for USD). Only valid for MARKETING templates onboarded to Max Pricing.



48
49
50
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 48

def bid_amount
  @bid_amount
end

Instance Method Details

#to_json(options = {}) ⇒ Object



52
53
54
55
56
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 52

def to_json(options = {})
{
        "bid_amount": @bid_amount,
}.to_json(options)
end