class Twilio::REST::Accounts::V1::SecondaryAuthTokenContext

Public Class Methods

new(version) click to toggle source

Initialize the SecondaryAuthTokenContext @param [Version] version Version that contains the resource @return [SecondaryAuthTokenContext] SecondaryAuthTokenContext

Calls superclass method Twilio::REST::InstanceContext::new
   # File lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
66 def initialize(version)
67   super(version)
68 
69   # Path Solution
70   @solution = {}
71   @uri = "/AuthTokens/Secondary"
72 end

Public Instance Methods

create() click to toggle source

Create the SecondaryAuthTokenInstance @return [SecondaryAuthTokenInstance] Created SecondaryAuthTokenInstance

   # File lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
77 def create
78   payload = @version.create('POST', @uri)
79 
80   SecondaryAuthTokenInstance.new(@version, payload, )
81 end
delete() click to toggle source

Delete the SecondaryAuthTokenInstance @return [Boolean] true if delete succeeds, false otherwise

   # File lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
86 def delete
87    @version.delete('DELETE', @uri)
88 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
 99 def inspect
100   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
101   "#<Twilio.Accounts.V1.SecondaryAuthTokenContext #{context}>"
102 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
92 def to_s
93   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
94   "#<Twilio.Accounts.V1.SecondaryAuthTokenContext #{context}>"
95 end