Class: Awspec::Generator::Doc::Type::Vpc

Inherits:
Base
  • Object
show all
Defined in:
lib/awspec/generator/doc/type/vpc.rb

Instance Method Summary collapse

Methods inherited from Base

#collect_matchers, #doc_template, #generate_doc, #sort_num, #type_name

Constructor Details

#initializeVpc

Returns a new instance of Vpc.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/awspec/generator/doc/type/vpc.rb', line 5

def initialize
  super
  @type_name = 'VPC'
  @type = Awspec::Type::Vpc.new('my-vpc')
  @ret = @type.resource_via_client
  @matchers = [
    Awspec::Type::Vpc::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', ')
  ]
  @ignore_matchers = Awspec::Type::Vpc::STATES.map { |state| 'be_' + state.tr('-', '_') }
  @describes = []
end