Class: Twilio::REST::Accounts::V1::AuthTokenPromotionContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Accounts::V1::AuthTokenPromotionContext
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
Instance Method Summary collapse
-
#initialize(version) ⇒ AuthTokenPromotionContext
constructor
Initialize the AuthTokenPromotionContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update ⇒ AuthTokenPromotionInstance
Update the AuthTokenPromotionInstance.
Constructor Details
#initialize(version) ⇒ AuthTokenPromotionContext
Initialize the AuthTokenPromotionContext
66 67 68 69 70 71 72 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 66 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/AuthTokens/Promote" end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
92 93 94 95 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 92 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Accounts.V1.AuthTokenPromotionContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
85 86 87 88 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 85 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Accounts.V1.AuthTokenPromotionContext #{context}>" end |
#update ⇒ AuthTokenPromotionInstance
Update the AuthTokenPromotionInstance
77 78 79 80 81 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 77 def update payload = @version.update('POST', @uri) AuthTokenPromotionInstance.new(@version, payload, ) end |