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::CredentialList
-
#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
21 22 23 24 25 26 27 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 21 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
31 32 33 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 31 def auth_token_promotion @auth_token_promotion ||= AuthTokenPromotionContext.new self end |
#credentials ⇒ Twilio::REST::Accounts::V1::CredentialList
36 37 38 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 36 def credentials @credentials ||= CredentialList.new self end |
#secondary_auth_token ⇒ Twilio::REST::Accounts::V1::secondaryAuthTokenContext
41 42 43 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 41 def secondary_auth_token @secondary_auth_token ||= SecondaryAuthTokenContext.new self end |
#to_s ⇒ Object
Provide a user friendly representation
46 47 48 |
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 46 def to_s '<Twilio::REST::Accounts::V1>'; end |