class Upwork::Api::Routers::Metadata

Get Metadata

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

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

Public Instance Methods

get_categories_v2() click to toggle source

Get categories (v2)

# File lib/upwork/api/routers/metadata.rb, line 31
def get_categories_v2
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v2/metadata/categories'
end
get_reasons(params) click to toggle source

Get reasons

Arguments:

params: (Hash)
# File lib/upwork/api/routers/metadata.rb, line 58
def get_reasons(params)
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v1/metadata/reasons', params;
end
get_regions() click to toggle source

Get regions

# File lib/upwork/api/routers/metadata.rb, line 43
def get_regions
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v1/metadata/regions'
end
get_skills() click to toggle source

Get skills

# File lib/upwork/api/routers/metadata.rb, line 37
def get_skills
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v1/metadata/skills'
end
get_tests() click to toggle source

Get tests

# File lib/upwork/api/routers/metadata.rb, line 49
def get_tests
  $LOG.i "running " + __method__.to_s
  @client.get '/profiles/v1/metadata/tests'
end