Class: Awspec::Generator::Doc::Type::SecurityGroup
- Defined in:
- lib/awspec/generator/doc/type/security_group.rb
Instance Method Summary collapse
-
#initialize ⇒ SecurityGroup
constructor
A new instance of SecurityGroup.
Methods inherited from Base
#collect_matchers, #doc_template, #generate_doc, #sort_num, #type_name
Constructor Details
#initialize ⇒ SecurityGroup
Returns a new instance of SecurityGroup.
7 8 9 10 11 12 13 14 |
# File 'lib/awspec/generator/doc/type/security_group.rb', line 7 def initialize super @type = Awspec::Type::SecurityGroup.new('my-security-group-name') @ret = @type.resource_via_client @matchers = ['its(:inbound), its(:outbound)'] @ignore_matchers = %w[be_opened be_inbound_opened be_outbound_opened] @describes = %w[inbound_rule_count outbound_rule_count inbound_permissions_count outbound_permissions_count] end |