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



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_promotionTwilio::REST::Accounts::V1::authTokenPromotionContext

Returns:

  • (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

#credentialsTwilio::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_tokenTwilio::REST::Accounts::V1::secondaryAuthTokenContext

Returns:

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

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