# File lib/aws/route_53/resource_record_set_collection.rb, line 57 def create name, type, options = {} batch = ChangeBatch.new(hosted_zone_id, :comment => options[:comment], :config => config) batch << CreateRequest.new(name, type, options) change_info = batch.call() if change_info ResourceRecordSet.new(name, type, :set_identifier => options[:set_identifier], :change_info => change_info, :hosted_zone_id => hosted_zone_id, :config => config) end end