Sha256: f845bdc473dd50d772fa99500c4fc28b3c5ac3ab12fe221125a3911f0ca16082
Contents?: true
Size: 706 Bytes
Versions: 43
Compression:
Stored size: 706 Bytes
Contents
require 'pathname' module Aws # @api private module ClientPaging # @api private def self.included(subclass) subclass.add_plugin('Aws::Plugins::ResponsePaging') class << subclass def set_paginators(paginators) @paginators = case paginators when Paging::Provider then paginators when Hash then Paging::Provider.new(paginators) when String, Pathname then Paging::Provider.new(Aws.load_json(paginators)) when nil then Paging::NullProvider.new else raise ArgumentError, 'invalid paginators' end end def paginators @paginators end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems