# File lib/aws/ec2/dhcp_options_collection.rb, line 44 def create options = {} configurations = [] options.each_pair do |opt,values| opt = opt.to_s.gsub(/_/, '-') values = values.is_a?(Array) ? values : [values] configurations << { :key => opt, :values => values.map(&:to_s) } end client_opts = {} client_opts[:dhcp_configurations] = configurations resp = client.create_dhcp_options(client_opts) DHCPOptions.new_from(:create_dhcp_options, resp.dhcp_options, resp.dhcp_options.dhcp_options_id, :config => config) end