class Upwork::Api::Routers::Workdays

Workdays

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

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

Public Instance Methods

get_by_company(company, from_date, till_date, params = {}) click to toggle source

Get Workdays by Company Arguments:

company: (String)
from_date: (String)
till_date: (String)
params: (Hash)
# File lib/upwork/api/routers/workdays.rb, line 36
def get_by_company(company, from_date, till_date, params = {})
  $LOG.i "running " + __method__.to_s
  @client.get '/team/v3/workdays/companies/' + company + '/' + from_date + ',' + till_date, params
end
get_by_contract(contract, from_date, till_date, params = {}) click to toggle source

Get Workdays by Contract Arguments:

contract: (String)
from_date: (String)
till_date: (String)
params: (Hash)
# File lib/upwork/api/routers/workdays.rb, line 47
def get_by_contract(contract, from_date, till_date, params = {})
  $LOG.i "running " + __method__.to_s
  @client.get '/team/v3/workdays/contracts/' + contract + '/' + from_date + ',' + till_date, params
end