Class: Awspec::Generator::Doc::Type::Elasticache

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

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

#initializeElasticache

Returns a new instance of Elasticache.



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

def initialize
  super
  @type_name = 'Elasticache'
  @type = Awspec::Type::Elasticache.new('my-rep-group-001')
  @ret = @type.resource_via_client
  @matchers = [
    Awspec::Type::Elasticache::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', '),
    'belong_to_vpc',
    'belong_to_replication_group',
    'belong_to_cache_subnet_group'
  ]
  @ignore_matchers = Awspec::Type::Elasticache::STATES.map { |state| 'be_' + state.tr('-', '_') }
  @describes = []
end