class Twilio::REST::Accounts::V1::CredentialList
Public Class Methods
new(version)
click to toggle source
Initialize the CredentialList
@param [Version] version Version
that contains the resource @return [CredentialList] CredentialList
Calls superclass method
Twilio::REST::ListResource::new
# File lib/twilio-ruby/rest/accounts/v1/credential.rb 18 def initialize(version) 19 super(version) 20 21 # Path Solution 22 @solution = {} 23 24 # Components 25 @public_key = nil 26 @aws = nil 27 end
Public Instance Methods
aws(sid=:unset)
click to toggle source
Access the aws @param [String] sid The Twilio-provided string that uniquely identifies the AWS
resource to fetch.
@return [AwsList] @return [AwsContext] if sid was passed.
# File lib/twilio-ruby/rest/accounts/v1/credential.rb 51 def aws(sid=:unset) 52 raise ArgumentError, 'sid cannot be nil' if sid.nil? 53 54 if sid != :unset 55 return AwsContext.new(@version, sid, ) 56 end 57 58 @aws ||= AwsList.new(@version, ) 59 end
public_key(sid=:unset)
click to toggle source
Access the public_key
@param [String] sid The Twilio-provided string that uniquely identifies the
PublicKey resource to fetch.
@return [PublicKeyList] @return [PublicKeyContext] if sid was passed.
# File lib/twilio-ruby/rest/accounts/v1/credential.rb 35 def public_key(sid=:unset) 36 raise ArgumentError, 'sid cannot be nil' if sid.nil? 37 38 if sid != :unset 39 return PublicKeyContext.new(@version, sid, ) 40 end 41 42 @public_key ||= PublicKeyList.new(@version, ) 43 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/accounts/v1/credential.rb 63 def to_s 64 '#<Twilio.Accounts.V1.CredentialList>' 65 end