koho 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/koho.gemspec CHANGED
File without changes
data/lib/koho.rb CHANGED
@@ -48,6 +48,7 @@ module Koho
48
48
  def contracts; Contracts.new company_id, token; end
49
49
  def projects; Projects.new company_id, token; end
50
50
  def project_tasks; ProjectTasks.new company_id, token; end
51
+ def work_sessions; ProjectTasks.new company_id, token; end
51
52
 
52
53
  ##########################3
53
54
 
@@ -175,6 +176,34 @@ module Koho
175
176
  end
176
177
 
177
178
 
179
+ class WorkSessions < Koho::Client
180
+
181
+ base_uri API_BASE_URL+'/work_sessions'
182
+
183
+
184
+ def list
185
+ get '/'
186
+ end
187
+
188
+ def find id
189
+ get "/#{id}"
190
+ end
191
+
192
+ def create params
193
+ post '/', work_session: params
194
+ end
195
+
196
+ def update id, params
197
+ put "/#{id}", work_session: params
198
+ end
199
+
200
+ def destroy id
201
+ delete "/#{id}"
202
+ end
203
+
204
+ end
205
+
206
+
178
207
  class Customers < Koho::Client
179
208
 
180
209
  base_uri API_BASE_URL+'/customers'
data/lib/koho/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Koho
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-28 00:00:00.000000000 Z
12
+ date: 2014-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :development