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