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/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

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



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

def credentials
  self.v1.credentials()
end

#to_sObject

Provide a user friendly representation



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

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