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/credential/public_key.rb

Defined Under Namespace

Classes: CredentialInstance, CredentialList, CredentialPage

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
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 15

def initialize(domain)
  super
  @version = 'v1'
  @credentials = nil
end

Instance Method Details

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

Returns:

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


23
24
25
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 23

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

#to_sObject

Provide a user friendly representation



29
30
31
# File 'lib/twilio-ruby/rest/accounts/v1.rb', line 29

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