class Upwork::Api::Routers::Reports::Time
Time reports
Constants
- ENTRY_POINT
Public Class Methods
new(client)
click to toggle source
Init
Arguments:
client: (Client)
# File lib/upwork/api/routers/reports/time.rb, line 26 def initialize(client) @client = client @client.epoint = ENTRY_POINT end
Public Instance Methods
get_by_agency(company, agency, params)
click to toggle source
Generating Agency Specific Reports
Arguments:
company: (String) agency: (String) params: (Hash)
# File lib/upwork/api/routers/reports/time.rb, line 59 def get_by_agency(company, agency, params) $LOG.i "running " + __method__.to_s get_by_type(company, nil, agency, params, false) end
get_by_company(company, params)
click to toggle source
Generating Company Wide Reports
Arguments:
company: (String) params: (Hash)
# File lib/upwork/api/routers/reports/time.rb, line 69 def get_by_company(company, params) $LOG.i "running " + __method__.to_s get_by_type(company, nil, nil, params, false) end
get_by_freelancer_full(freelancer_id, params)
click to toggle source
Generating Freelancer's Specific Reports (with financial info)
Arguments:
freelancer_id: (String) params: (Hash)
# File lib/upwork/api/routers/reports/time.rb, line 89 def get_by_freelancer_full(freelancer_id, params) $LOG.i "running " + __method__.to_s @client.get '/timereports/v1/providers/' + freelancer_id, params end
get_by_freelancer_limited(freelancer_id, params)
click to toggle source
Generating Freelancer's Specific Reports (hide financial info)
Arguments:
freelancer_id: (String) params: (Hash)
# File lib/upwork/api/routers/reports/time.rb, line 79 def get_by_freelancer_limited(freelancer_id, params) $LOG.i "running " + __method__.to_s @client.get '/timereports/v1/providers/' + freelancer_id + '/hours', params end
get_by_team_full(company, team, params)
click to toggle source
Generate Time Reports for a Specific Team (with financial info)
Arguments:
company: (String) team: (String) params: (Hash)
# File lib/upwork/api/routers/reports/time.rb, line 37 def get_by_team_full(company, team, params) $LOG.i "running " + __method__.to_s get_by_type(company, team, nil, params, false) end
get_by_team_limited(company, team, params)
click to toggle source
Generate Time Reports for a Specific Team (hide financial info)
Arguments:
company: (String) team: (String) params: (Hash)
# File lib/upwork/api/routers/reports/time.rb, line 48 def get_by_team_limited(company, team, params) $LOG.i "running " + __method__.to_s get_by_type(company, team, nil, params, true) end