class Twilio::REST::Verify::V2::ServiceContext::AccessTokenInstance

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, payload, service_sid: nil) click to toggle source

Initialize the AccessTokenInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] service_sid The unique string that we created to identify the

Service resource.

@return [AccessTokenInstance] AccessTokenInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/verify/v2/service/access_token.rb
 95 def initialize(version, payload, service_sid: nil)
 96   super(version)
 97 
 98   # Marshaled Properties
 99   @properties = {'token' => payload['token'], }
100 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/access_token.rb
116 def inspect
117   "<Twilio.Verify.V2.AccessTokenInstance>"
118 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/access_token.rb
110 def to_s
111   "<Twilio.Verify.V2.AccessTokenInstance>"
112 end
token() click to toggle source

@return [String] Generated access token.

    # File lib/twilio-ruby/rest/verify/v2/service/access_token.rb
104 def token
105   @properties['token']
106 end