Class: Awspec::Generator::Doc::Type::VpnGateway
- Defined in:
- lib/awspec/generator/doc/type/vpn_gateway.rb
Instance Method Summary collapse
-
#initialize ⇒ VpnGateway
constructor
A new instance of VpnGateway.
Methods inherited from Base
#collect_matchers, #doc_template, #generate_doc, #sort_num, #type_name
Constructor Details
#initialize ⇒ VpnGateway
Returns a new instance of VpnGateway.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/awspec/generator/doc/type/vpn_gateway.rb', line 7 def initialize super @type_name = 'VpnGateway' @type = Awspec::Type::VpnGateway.new('my-vpn-gateway') @ret = @type.resource_via_client @matchers = [ Awspec::Type::VpnGateway::STATES.map { |state| "be_#{state.tr('-', '_')}" }.join(', '), 'belong_to_vpc' ] @ignore_matchers = Awspec::Type::VpnGateway::STATES.map { |state| "be_#{state.tr('-', '_')}" } @describes = [] end |