Class: Fog::AWS::Compute::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.



11
12
13
# File 'lib/fog/aws/models/compute/tag.rb', line 11

def initialize(attributes = {})
  super
end

Instance Method Details

#destroyObject



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

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

#saveObject



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

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