class Twilio::REST::Accounts::V1::AuthTokenPromotionContext
Public Class Methods
new(version)
click to toggle source
Initialize the AuthTokenPromotionContext
@param [Version] version Version
that contains the resource @return [AuthTokenPromotionContext] AuthTokenPromotionContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb 66 def initialize(version) 67 super(version) 68 69 # Path Solution 70 @solution = {} 71 @uri = "/AuthTokens/Promote" 72 end
Public Instance Methods
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb 92 def inspect 93 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 94 "#<Twilio.Accounts.V1.AuthTokenPromotionContext #{context}>" 95 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb 85 def to_s 86 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 87 "#<Twilio.Accounts.V1.AuthTokenPromotionContext #{context}>" 88 end
update()
click to toggle source
Update the AuthTokenPromotionInstance
@return [AuthTokenPromotionInstance] Updated AuthTokenPromotionInstance
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb 77 def update 78 payload = @version.update('POST', @uri) 79 80 AuthTokenPromotionInstance.new(@version, payload, ) 81 end