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