lib/twilio-ruby/rest/monitor/v1/alert.rb in twilio-ruby-5.0.0 vs lib/twilio-ruby/rest/monitor/v1/alert.rb in twilio-ruby-5.1.0

- old
+ new

@@ -27,15 +27,15 @@ # memory before returning. # @param [String] log_level The log_level # @param [Date] start_date The start_date # @param [Date] end_date The end_date # @param [Integer] limit Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param [Integer] page_size Number of records to fetch per request, when not set will use - # the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the - # limit with the most efficient page size, i.e. min(limit, 1000) + # guarantees to never return more than limit. Default is no limit + # @param [Integer] page_size Number of records to fetch per request, when + # not set will use the default value of 50 records. If no page_size is defined + # but a limit is defined, stream() will attempt to read the limit with the most + # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results def list(log_level: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil) self.stream( log_level: log_level, start_date: start_date, @@ -50,15 +50,15 @@ # This operation lazily loads records as efficiently as possible until the limit # is reached. # @param [String] log_level The log_level # @param [Date] start_date The start_date # @param [Date] end_date The end_date - # @param [Integer] limit Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param [Integer] page_size Number of records to fetch per request, when not set will use - # the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the - # limit with the most efficient page size, i.e. min(limit, 1000) + # @param [Integer] limit Upper limit for the number of records to return. stream() + # guarantees to never return more than limit. Default is no limit. + # @param [Integer] page_size Number of records to fetch per request, when + # not set will use the default value of 50 records. If no page_size is defined + # but a limit is defined, stream() will attempt to read the limit with the most + # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results def stream(log_level: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) page = self.page( \ No newline at end of file