Class: Twilio::REST::Accounts::V1

Inherits:
Version
  • Object
show all
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

#domain

Instance Method Summary collapse

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_promotionTwilio::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

#credentialsTwilio::REST::Accounts::V1::CredentialContext

Returns:

  • (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_tokenTwilio::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_sObject

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