lib/twilio-ruby/rest/preview/hosted_numbers.rb in twilio-ruby-5.48.0 vs lib/twilio-ruby/rest/preview/hosted_numbers.rb in twilio-ruby-5.49.0

- old
+ new

@@ -24,29 +24,31 @@ # AuthorizationDocument. # @return [Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentContext] if sid was passed. # @return [Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList] def authorization_documents(sid=:unset) if sid.nil? - raise ArgumentError, 'sid cannot be nil' - elsif sid == :unset - @authorization_documents ||= AuthorizationDocumentList.new self + raise ArgumentError, 'sid cannot be nil' + end + if sid == :unset + @authorization_documents ||= AuthorizationDocumentList.new self else - AuthorizationDocumentContext.new(self, sid) + AuthorizationDocumentContext.new(self, sid) end end ## # @param [String] sid A 34 character string that uniquely identifies this # HostedNumberOrder. # @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderContext] if sid was passed. # @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList] def hosted_number_orders(sid=:unset) if sid.nil? - raise ArgumentError, 'sid cannot be nil' - elsif sid == :unset - @hosted_number_orders ||= HostedNumberOrderList.new self + raise ArgumentError, 'sid cannot be nil' + end + if sid == :unset + @hosted_number_orders ||= HostedNumberOrderList.new self else - HostedNumberOrderContext.new(self, sid) + HostedNumberOrderContext.new(self, sid) end end ## # Provide a user friendly representation \ No newline at end of file