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/safelist.rb,
lib/twilio-ruby/rest/accounts/v1/credential.rb,
lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb,
lib/twilio-ruby/rest/accounts/v1/bulk_contacts.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, BulkConsentsInstance, BulkConsentsList, BulkConsentsPage, BulkContactsInstance, BulkContactsList, BulkContactsPage, CredentialInstance, CredentialList, CredentialPage, SafelistInstance, SafelistList, SafelistPage, 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
28
29
30
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 21

def initialize(domain)
    super
    @version = 'v1'
    @auth_token_promotion = nil
    @bulk_consents = nil
    @bulk_contacts = nil
    @credentials = nil
    @safelist = nil
    @secondary_auth_token = nil
end

Instance Method Details

#auth_token_promotionTwilio::REST::Accounts::V1::authTokenPromotionContext

Returns:

  • (Twilio::REST::Accounts::V1::authTokenPromotionContext)


34
35
36
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 34

def auth_token_promotion
    @auth_token_promotion ||= AuthTokenPromotionContext.new self
end

#bulk_consentsTwilio::REST::Accounts::V1::BulkConsentsList



39
40
41
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 39

def bulk_consents
    @bulk_consents ||= BulkConsentsList.new self
end

#bulk_contactsTwilio::REST::Accounts::V1::BulkContactsList



44
45
46
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 44

def bulk_contacts
    @bulk_contacts ||= BulkContactsList.new self
end

#credentialsTwilio::REST::Accounts::V1::CredentialList



49
50
51
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 49

def credentials
    @credentials ||= CredentialList.new self
end

#safelistTwilio::REST::Accounts::V1::SafelistList



54
55
56
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 54

def safelist
    @safelist ||= SafelistList.new self
end

#secondary_auth_tokenTwilio::REST::Accounts::V1::secondaryAuthTokenContext

Returns:

  • (Twilio::REST::Accounts::V1::secondaryAuthTokenContext)


59
60
61
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 59

def secondary_auth_token
    @secondary_auth_token ||= SecondaryAuthTokenContext.new self
end

#to_sObject

Provide a user friendly representation



64
65
66
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 64

def to_s
    '<Twilio::REST::Accounts::V1>';
end