Class: Upwork::Api::Routers::Jobs::Search

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

Overview

Search Job 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/jobs/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/jobs/search.rb', line 35

def find(params)
  $LOG.i "running " + __method__.to_s
  raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
end