lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb in twilio-ruby-5.0.0 vs lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb in twilio-ruby-5.1.0
- old
+ new
@@ -80,15 +80,15 @@
# @param [trigger.TriggerField] trigger_by Only show UsageTriggers that trigger by
# this field in the UsagRecord
# @param [trigger.UsageCategory] usage_category Only show UsageTriggers that watch
# this usage category
# @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(recurring: :unset, trigger_by: :unset, usage_category: :unset, limit: nil, page_size: nil)
self.stream(
recurring: recurring,
trigger_by: trigger_by,
@@ -106,15 +106,15 @@
# this interval. One of daily, monthly, or yearly
# @param [trigger.TriggerField] trigger_by Only show UsageTriggers that trigger by
# this field in the UsagRecord
# @param [trigger.UsageCategory] usage_category Only show UsageTriggers that watch
# this usage category
- # @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(recurring: :unset, trigger_by: :unset, usage_category: :unset, limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)
page = self.page(
\ No newline at end of file