Class: Twilio::REST::Verify::V2::ServiceContext::AccessTokenInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Verify::V2::ServiceContext::AccessTokenInstance
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/access_token.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#initialize(version, payload, service_sid: nil) ⇒ AccessTokenInstance
constructor
Initialize the AccessTokenInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#token ⇒ String
Generated access token.
Constructor Details
#initialize(version, payload, service_sid: nil) ⇒ AccessTokenInstance
Initialize the AccessTokenInstance
101 102 103 104 105 106 |
# File 'lib/twilio-ruby/rest/verify/v2/service/access_token.rb', line 101 def initialize(version, payload, service_sid: nil) super(version) # Marshaled Properties @properties = {'token' => payload['token'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
122 123 124 |
# File 'lib/twilio-ruby/rest/verify/v2/service/access_token.rb', line 122 def inspect "<Twilio.Verify.V2.AccessTokenInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
116 117 118 |
# File 'lib/twilio-ruby/rest/verify/v2/service/access_token.rb', line 116 def to_s "<Twilio.Verify.V2.AccessTokenInstance>" end |
#token ⇒ String
Returns Generated access token.
110 111 112 |
# File 'lib/twilio-ruby/rest/verify/v2/service/access_token.rb', line 110 def token @properties['token'] end |