Class: Twilio::REST::Oauth::V2

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/oauth/v2.rb,
lib/twilio-ruby/rest/oauth/v2/token.rb

Defined Under Namespace

Classes: TokenInstance, TokenList, TokenPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V2

Initialize the V2 version of Oauth



21
22
23
24
25
# File 'lib/twilio-ruby/rest/oauth/v2.rb', line 21

def initialize(domain)
    super
    @version = 'v2'
    @token = nil
end

Instance Method Details

#to_sObject

Provide a user friendly representation



34
35
36
# File 'lib/twilio-ruby/rest/oauth/v2.rb', line 34

def to_s
    '<Twilio::REST::Oauth::V2>';
end

#tokenTwilio::REST::Oauth::V2::TokenList



29
30
31
# File 'lib/twilio-ruby/rest/oauth/v2.rb', line 29

def token
    @token ||= TokenList.new self
end