Sha256: 495240b3a3b4cbc75ad86afb19c5efdca0aa39871bd4d639853bacc0ed074d00

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

class Inventory::Iam
  class User < Inventory::Base
    include Shared

    def header
      ["User", "Password Last Used"]
    end

    def data
      users.map do |user|
        group_names = group_names(user).join(',')

        [user.user_name, group_names]
      end
    end

    def sort(data)
      data.sort_by { |item| item[1].to_i }.reverse
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aws-inventory-0.3.2 lib/inventory/iam/user.rb
aws-inventory-0.3.1 lib/inventory/iam/user.rb
aws-inventory-0.3.0 lib/inventory/iam/user.rb
aws-inventory-0.2.1 lib/inventory/iam/user.rb
aws-inventory-0.2.0 lib/inventory/iam/user.rb