module Volunteermatch
  module API
    module SearchOrganizations
      def search_organizations(parameters = {})
        raise ArgumentError, 'location needs to be defined' if parameters[:location].nil? || parameters[:location].empty?
        parameters[:location] = parameters[:location] || nil
        parameters[:fieldsToDisplay] = parameters[:fieldsToDisplay => ["name", "location"]]
        call(:searchOrganizations, parameters.to_json)
      end
    end
  end
end

module Volunteermatch
  module API
    module SearchOrganizations
      def search_organizations(parameters = {})
        raise ArgumentError, 'location needs to be defined' if parameters[:location].nil? || parameters[:location].empty?
        parameters[:location] = parameters[:location] || nil
        call(:searchOrganizations, parameters.to_json)
      end
    end
  end
end

Remove default text to display in parameters
Remove default text to display in parameters
