module AWS::IAM::Collection

Protected Instance Methods

_each_item(marker, max_items, options = {}) click to toggle source
# File lib/aws/iam/collection.rb, line 67
def _each_item marker, max_items, options = {}, &block

  options[:marker] = marker if marker
  options[:max_items] = max_items if max_items

  response = client.send(request_method, options)
  each_item(response, &block)

  response.marker if response.respond_to?(:marker)

end
request_method() click to toggle source
# File lib/aws/iam/collection.rb, line 61
def request_method
  name = Core::Inflection.ruby_name(self.class.name).sub(%r_collection$/, '')
  "list_#{name}s"
end