Class: AwsInventory::SecurityGroup::Summary

Inherits:
Base
  • Object
show all
Includes:
Shared
Defined in:
lib/aws_inventory/security_group/summary.rb

Instance Method Summary collapse

Methods included from Shared

#unused_security_groups, #used_security_groups

Methods inherited from Base

eager_load!, inherited, #initialize, #report, #show, #sort, subclasses, #test_mode

Methods included from AwsServices

#acm, #cfn, #cw, #eb, #ec2, #ecs, #elbv1, #elbv2, #iam, #pricing, #rds, #route53

Methods included from AwsInventory::Shared

#instances, #security_groups

Constructor Details

This class inherits a constructor from AwsInventory::Base

Instance Method Details

#dataObject



9
10
11
12
13
14
15
# File 'lib/aws_inventory/security_group/summary.rb', line 9

def data
  [
    ["Total", security_groups.size],
    ["Used", used_security_groups.size],
    ["Unused", unused_security_groups.size],
  ]
end

#headerObject



5
6
7
# File 'lib/aws_inventory/security_group/summary.rb', line 5

def header
  ["Security Group", "Count"]
end