Class: Upwork::Api::Routers::Freelancers::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/upwork/api/routers/freelancers/search.rb

Overview

Search Freelancer’s profiles

Constant Summary collapse

ENTRY_POINT =
'api'

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Search

Init

Arguments:

client: (Client)


26
27
28
29
# File 'lib/upwork/api/routers/freelancers/search.rb', line 26

def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Instance Method Details

#find(params) ⇒ Object

Search profiles

Arguments:

params: (Hash)


35
36
37
38
# File 'lib/upwork/api/routers/freelancers/search.rb', line 35

def find(params)
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v2/search/providers', params
end