Class: Fog::AWS::Elasticache::ParameterGroup

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/aws/models/elasticache/parameter_group.rb

Instance Attribute Summary

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Fog::Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Fog::Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#destroyObject



13
14
15
16
17
# File 'lib/fog/aws/models/elasticache/parameter_group.rb', line 13

def destroy
  requires :id
  connection.delete_cache_parameter_group(id)
  true
end

#saveObject



19
20
21
22
23
24
25
26
# File 'lib/fog/aws/models/elasticache/parameter_group.rb', line 19

def save
  requires :id
  connection.create_cache_parameter_group(
    id,
    description = id,
    family      = 'memcached1.4'
  )
end