Class: Twilio::REST::Oauth::V1

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

Defined Under Namespace

Classes: AuthorizeInstance, AuthorizeList, AuthorizePage, 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) ⇒ V1

Initialize the V1 version of Oauth



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

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

Instance Method Details

#authorizeTwilio::REST::Oauth::V1::AuthorizeList



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

def authorize
    @authorize ||= AuthorizeList.new self
end

#to_sObject

Provide a user friendly representation



40
41
42
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 40

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

#tokenTwilio::REST::Oauth::V1::TokenList



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

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