lib/twilio-ruby/rest/api/v2010/account/sip.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/api/v2010/account/sip.rb in twilio-ruby-5.0.0.rc25

- old
+ new

@@ -32,12 +32,15 @@ end ## # Access the domains # @param [String] sid The domain sid that uniquely identifies the resource - # @return [DomainList] DomainList + # @return [DomainList] if a(n) DomainList object was created. + # @return [DomainContext] if a(n) DomainContext object was created. def domains(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return DomainContext.new( @version, @solution[:account_sid], sid, @@ -50,11 +53,12 @@ ) end ## # Access the regions - # @return [RegionList] RegionList + # @return [RegionList] if a(n) RegionList object was created. + # @return [RegionContext] if a(n) RegionContext object was created. def regions @regions ||= RegionList.new( @version, account_sid: @solution[:account_sid], ) @@ -62,12 +66,15 @@ ## # Access the ip_access_control_lists # @param [String] sid The ip-access-control-list Sid that uniquely identifies this # resource - # @return [IpAccessControlListList] IpAccessControlListList + # @return [IpAccessControlListList] if a(n) IpAccessControlListList object was created. + # @return [IpAccessControlListContext] if a(n) IpAccessControlListContext object was created. def ip_access_control_lists(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return IpAccessControlListContext.new( @version, @solution[:account_sid], sid, @@ -81,11 +88,14 @@ end ## # Access the credential_lists # @param [String] sid The credential Sid that uniquely identifies this resource - # @return [CredentialListList] CredentialListList + # @return [CredentialListList] if a(n) CredentialListList object was created. + # @return [CredentialListContext] if a(n) CredentialListContext object was created. def credential_lists(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return CredentialListContext.new( @version, @solution[:account_sid], sid, \ No newline at end of file