Class: Twilio::REST::Accounts

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/accounts.rb,
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: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Accounts

Initialize the Accounts Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/accounts.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://accounts.twilio.com'
  @host = 'accounts.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#auth_token_promotionTwilio::REST::Accounts::V1::AuthTokenPromotionInstance


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

def auth_token_promotion
  self.v1.auth_token_promotion()
end

#credentialsTwilio::REST::Accounts::V1::CredentialInstance


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

def credentials
  self.v1.credentials()
end

#secondary_auth_tokenTwilio::REST::Accounts::V1::SecondaryAuthTokenInstance


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

def secondary_auth_token
  self.v1.secondary_auth_token()
end

#to_sObject

Provide a user friendly representation


51
52
53
# File 'lib/twilio-ruby/rest/accounts.rb', line 51

def to_s
  '#<Twilio::REST::Accounts>'
end

#v1Object

Version v1 of accounts


27
28
29
# File 'lib/twilio-ruby/rest/accounts.rb', line 27

def v1
  @v1 ||= V1.new self
end