Class: Twilio::REST::Oauth::V2
- 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
Instance Method Summary collapse
-
#initialize(domain) ⇒ V2
constructor
Initialize the V2 version of Oauth.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #token ⇒ Twilio::REST::Oauth::V2::TokenList
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_s ⇒ Object
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 |
#token ⇒ Twilio::REST::Oauth::V2::TokenList
29 30 31 |
# File 'lib/twilio-ruby/rest/oauth/v2.rb', line 29 def token @token ||= TokenList.new self end |