lib/twilio-ruby/rest/accounts/v1/credential.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/accounts/v1/credential.rb in twilio-ruby-5.0.0.rc25
- old
+ new
@@ -25,11 +25,14 @@
##
# Access the public_key
# @param [String] sid The Credential Sid that uniquely identifies the Credential
# to fetch
- # @return [PublicKeyList] PublicKeyList
+ # @return [PublicKeyList] if a(n) PublicKeyList object was created.
+ # @return [PublicKeyContext] if a(n) PublicKeyContext object was created.
def public_key(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
+
if sid != :unset
return PublicKeyContext.new(
@version,
sid,
)
\ No newline at end of file