Class: Awspec::Generator::Doc::Type::Ami

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

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

#initializeAmi

Returns a new instance of Ami.



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

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