Method: Awspec::Type::Elasticache#initialize

Defined in:
lib/awspec/type/elasticache.rb

#initialize(id) ⇒ Elasticache

Returns a new instance of Elasticache.



3
4
5
6
7
# File 'lib/awspec/type/elasticache.rb', line 3

def initialize(id)
  super
  @resource_via_client = find_cache_cluster(id)
  @id = @resource_via_client[:cache_cluster_id] if @resource_via_client
end