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, AuthorizeListResponse, AuthorizePage, AuthorizePageMetadata, TokenInstance, TokenList, TokenListResponse, TokenPage, TokenPageMetadata

Instance Attribute Summary

Attributes inherited from Version

#domain, #version

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #create_with_metadata, #delete, #delete_with_metadata, #exception, #fetch, #fetch_with_metadata, #page, #patch, #read_limits, #relative_uri, #request, #stream, #stream_with_metadata, #update, #update_with_metadata

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