Class: Twilio::REST::Accounts::V1
- Defined in:
- lib/twilio-ruby/rest/accounts/v1.rb,
lib/twilio-ruby/rest/accounts/v1/credential.rb,
lib/twilio-ruby/rest/accounts/v1/credential/aws.rb,
lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb,
lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb,
lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Defined Under Namespace
Classes: AuthTokenPromotionContext, AuthTokenPromotionInstance, AuthTokenPromotionList, AuthTokenPromotionPage, CredentialInstance, CredentialList, CredentialPage, SecondaryAuthTokenContext, SecondaryAuthTokenInstance, SecondaryAuthTokenList, SecondaryAuthTokenPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #auth_token_promotion ⇒ Twilio::REST::Accounts::V1::AuthTokenPromotionContext
- #credentials ⇒ Twilio::REST::Accounts::V1::CredentialContext
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Accounts.
- #secondary_auth_token ⇒ Twilio::REST::Accounts::V1::SecondaryAuthTokenContext
-
#to_s ⇒ Object
Provide a user friendly representation.
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 Accounts
15 16 17 18 19 20 21 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 15 def initialize(domain) super @version = 'v1' @auth_token_promotion = nil @credentials = nil @secondary_auth_token = nil end |
Instance Method Details
#auth_token_promotion ⇒ Twilio::REST::Accounts::V1::AuthTokenPromotionContext
25 26 27 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 25 def auth_token_promotion @auth_token_promotion ||= AuthTokenPromotionContext.new self end |
#credentials ⇒ Twilio::REST::Accounts::V1::CredentialContext
31 32 33 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 31 def credentials @credentials ||= CredentialList.new self end |
#secondary_auth_token ⇒ Twilio::REST::Accounts::V1::SecondaryAuthTokenContext
37 38 39 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 37 def secondary_auth_token @secondary_auth_token ||= SecondaryAuthTokenContext.new self end |
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 43 def to_s '<Twilio::REST::Accounts::V1>' end |