Class: TimeDoctor::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/timedoctor/client.rb

Constant Summary collapse

CORE =
TimeDoctor::Core

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Client

Returns a new instance of Client.



17
18
19
20
# File 'lib/timedoctor/client.rb', line 17

def initialize(config = {})
  @config = Config.new(config)
  @worker = Worker.new(@config)
end

Instance Method Details

#absent_and_lateObject



22
23
24
# File 'lib/timedoctor/client.rb', line 22

def absent_and_late
  CORE::AbsentAndLate.new(@worker)
end

#companiesObject



26
27
28
# File 'lib/timedoctor/client.rb', line 26

def companies
  CORE::Companies.new(@worker)
end

#payrollsObject



30
31
32
# File 'lib/timedoctor/client.rb', line 30

def payrolls
  CORE::Payrolls.new(@worker)
end

#poortimeObject



34
35
36
# File 'lib/timedoctor/client.rb', line 34

def poortime
  CORE::Poortime.new(@worker)
end

#projectsObject



38
39
40
# File 'lib/timedoctor/client.rb', line 38

def projects
  CORE::Projects.new(@worker)
end

#tasksObject



42
43
44
# File 'lib/timedoctor/client.rb', line 42

def tasks
  CORE::Tasks.new(@worker)
end

#usersObject



46
47
48
# File 'lib/timedoctor/client.rb', line 46

def users
  CORE::Users.new(@worker)
end

#web_and_appObject



50
51
52
# File 'lib/timedoctor/client.rb', line 50

def web_and_app
  CORE::WebAndApp.new(@worker)
end

#worklogsObject



54
55
56
# File 'lib/timedoctor/client.rb', line 54

def worklogs
  CORE::Worklogs.new(@worker)
end