Class: Twilio::REST::Oauth::V1
- Defined in:
- lib/twilio-ruby/rest/oauth/v1.rb,
lib/twilio-ruby/rest/oauth/v1/oauth.rb,
lib/twilio-ruby/rest/oauth/v1/token.rb,
lib/twilio-ruby/rest/oauth/v1/user_info.rb,
lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb
Defined Under Namespace
Classes: OauthContext, OauthInstance, OauthList, OauthPage, OpenidDiscoveryContext, OpenidDiscoveryInstance, OpenidDiscoveryList, OpenidDiscoveryPage, TokenInstance, TokenList, TokenPage, UserInfoContext, UserInfoInstance, UserInfoList, UserInfoPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Oauth.
- #oauth ⇒ Twilio::REST::Oauth::V1::OauthContext
- #openid_discovery ⇒ Twilio::REST::Oauth::V1::OpenidDiscoveryContext
-
#to_s ⇒ Object
Provide a user friendly representation.
- #token ⇒ Twilio::REST::Oauth::V1::TokenContext
- #user_info ⇒ Twilio::REST::Oauth::V1::UserInfoContext
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
15 16 17 18 19 20 21 22 |
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 15 def initialize(domain) super @version = 'v1' @oauth = nil @openid_discovery = nil @token = nil @user_info = nil end |
Instance Method Details
#oauth ⇒ Twilio::REST::Oauth::V1::OauthContext
26 27 28 |
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 26 def oauth @oauth ||= OauthContext.new self end |
#openid_discovery ⇒ Twilio::REST::Oauth::V1::OpenidDiscoveryContext
32 33 34 |
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 32 def openid_discovery @openid_discovery ||= OpenidDiscoveryContext.new self end |
#to_s ⇒ Object
Provide a user friendly representation
50 51 52 |
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 50 def to_s '<Twilio::REST::Oauth::V1>' end |
#token ⇒ Twilio::REST::Oauth::V1::TokenContext
38 39 40 |
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 38 def token @token ||= TokenList.new self end |
#user_info ⇒ Twilio::REST::Oauth::V1::UserInfoContext
44 45 46 |
# File 'lib/twilio-ruby/rest/oauth/v1.rb', line 44 def user_info @user_info ||= UserInfoContext.new self end |