# File lib/fog/dns/openstack/v2/requests/create_zone.rb, line 6 def create_zone(name, email, options = {}) data = { 'name' => name, 'email' => email } vanilla_options = [:ttl, :description, :type, :masters, :attributes] vanilla_options.select { |o| options[o] }.each do |key| data[key] = options[key] end request( :body => Fog::JSON.encode(data), :expects => 202, :method => 'POST', :path => "zones" ) end