@private
# File lib/aws/auto_scaling/tag.rb, line 25 def initialize options = {} super() @resource = case options[:resource_type] when 'auto-scaling-group' group_name = options[:resource_id] config = options.delete(:config) Group.new(group_name, :config => config) else msg = "unhandled resource type: #{options[:resource_type]}" raise ArgumentError, msg end merge!(options) end
Deletes the tag from the resource. @return [nil]
# File lib/aws/auto_scaling/tag.rb, line 52 def delete resource.delete_tags([self]) nil end
@return [Group] Returns the tagged resource. Currently this is
always an Auto Scaling group.
# File lib/aws/auto_scaling/tag.rb, line 46 def resource @resource end