class Upwork::Api::Routers::Freelancers::Profile

Freelancer's profile info

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

client: (Client)
# File lib/upwork/api/routers/freelancers/profile.rb, line 26
def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Public Instance Methods

get_specific(key) click to toggle source

Get specific profile

Arguments:

key: (String)
# File lib/upwork/api/routers/freelancers/profile.rb, line 35
def get_specific(key)
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v1/providers/' + key
end
get_specific_brief(key) click to toggle source

Get brief info on specific profile

Arguments:

key: (String)
# File lib/upwork/api/routers/freelancers/profile.rb, line 44
def get_specific_brief(key)
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v1/providers/' + key + '/brief'
end