Sha256: cddbd8ccbab44a7d107f1c0b0f053bc93cd5f9983e1c9c617b33f04c9f9d0386

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 Bytes

Contents

class AwsInventory::Iam
  class User < AwsInventory::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

4 entries across 4 versions & 1 rubygems

Version Path
aws-inventory-0.4.5 lib/aws_inventory/iam/user.rb
aws-inventory-0.4.3 lib/aws_inventory/iam/user.rb
aws-inventory-0.4.2 lib/aws_inventory/iam/user.rb
aws-inventory-0.4.0 lib/aws_inventory/iam/user.rb