vendor/bundle/ruby/2.3.0/gems/freelancer-0.1.1/lib/freelancer/api/employer.rb
def choose_winner_for_project(*args)

          params = extract_params(args)

          # Handle the user id attribute, make sure it's an array and not set to nil to
          # simplify the handling below.
          params[:user_id] ||= []
          params[:user_id] = [ params[:user_id] ] unless params[:user_id].is_a?(Array)

          # Execute the service call
          result = api_get("/Employer/chooseWinnerForProject.json", build_api_params({
            :projectid => params[:project_id],
            :useridcsv => params[:user_id].join(",")
          }))

          # Parse and return the response
          ::Freelancer::Models::StatusConfirmation.parse(result, :shift => :"json-result")
          
        end
# Choose one or more winners for a project
#
# Valid parameters are:
#   - project_id: the id of the project to choose a winner for
#   - user_id: a single user id, or an array of user ids, to be made winners of the project
Choose one or more winners for a project
Valid parameters are:
project_id: the id of the project to choose a winner for
user_id: a single user id, or an array of user ids, to be made winners of the project
Choose one or more winners for a project Valid parameters are : project_id : the id of the project to choose a winner for user_id : a single user id or an array of user ids to be made winners of the project
def choose_winner_for_project(*args)
          params = extract_params(args)
          params[:user_id] ||= []
          params[:user_id] = [ params[:user_id] ] unless params[:user_id].is_a?(Array)
          result = api_get("/Employer/chooseWinnerForProject.json", build_api_params({
            :projectid => params[:project_id],
            :useridcsv => params[:user_id].join(",")
          }))
          ::Freelancer::Models::StatusConfirmation.parse(result, :shift => :"json-result")
        end
def choose_winner_for_project ( * args ) params = extract_params ( args ) params [ :user_id ] ||= [ ] params [ :user_id ] = [ params [ :user_id ] ] unless params [ :user_id ] . is_a? ( Array ) result = api_get ( "/Employer/chooseWinnerForProject.json" , build_api_params ( { :projectid => params [ :project_id ] , :useridcsv => params [ :user_id ] . join ( "," ) } ) ) :: Freelancer :: Models :: StatusConfirmation . parse ( result , :shift => :" json-result " ) end
Choose one or more winners for a project
Valid parameters are:
 project_id: the id of the project to choose a winner for
 user_id: a single user id, or an array of user ids, to be made winners of the project
Choose one or more winners for a project Valid parameters are : project_id : the id of the project to choose a winner for user_id : a single user id or an array of user ids to be made winners of the project
# Handle the user id attribute, make sure it's an array and not set to nil to # simplify the handling below. # Execute the service call # Parse and return the response
args