# 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