Class: Awspec::Generator::Doc::Type::NatGateway

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

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

#initializeNatGateway

Returns a new instance of NatGateway.



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

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