class AwsInventory::Iam::User
Public Instance Methods
data()
click to toggle source
# File lib/aws_inventory/iam/user.rb, line 9 def data users.map do |user| group_names = group_names(user).join(',') [user.user_name, group_names] end end
header()
click to toggle source
# File lib/aws_inventory/iam/user.rb, line 5 def header ["User", "Password Last Used"] end
sort(data)
click to toggle source
# File lib/aws_inventory/iam/user.rb, line 17 def sort(data) data.sort_by { |item| item[1].to_i }.reverse end