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