Class: Fog::Compute::AWS::Tag

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Tag

Returns a new instance of Tag.



13
14
15
# File 'lib/fog/aws/models/compute/tag.rb', line 13

def initialize(attributes = {})
  super
end

Instance Method Details

#destroyObject



17
18
19
20
21
# File 'lib/fog/aws/models/compute/tag.rb', line 17

def destroy
  requires :key, :resource_id
  service.delete_tags(resource_id, key => value)
  true
end

#saveObject



23
24
25
26
27
# File 'lib/fog/aws/models/compute/tag.rb', line 23

def save
  requires :key, :resource_id
  service.create_tags(resource_id, key => value)
  true
end