myob-api 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef98db57c6e0ef842f8bc745a46ad7ac9fe207da
4
- data.tar.gz: d68339055aafa37f228cdcfa4b58b3808a5c78e8
3
+ metadata.gz: 8e4541e246c65b81d4241eaf0bd2fe9b7234e0e3
4
+ data.tar.gz: fbb422a83404ee7d36ce350e9a9176ea3149b679
5
5
  SHA512:
6
- metadata.gz: 1be8c301ce91f34c7e9c192b056e7c89b1ff913eee8e8adc9a906868c2b3f7d91786dd3ca629c2fdfbac0fbd4e861899acc3dfd9c86a4d37df2524de229e9ca8
7
- data.tar.gz: 3958a1ce063402caca2ba1968038af5f73a61e1892c093285cf1e02ec6584763e7486f71b2f04f7f3ddd692d5215b0c4055ddcafd3f2878e82834a2c314eeea2
6
+ metadata.gz: 586261f4a2e26080e8d1be61fc280bfe068de9f655351bbcf425d47050b17dd64957999d478662c22ea854b4f36358c673d0a670646a7aeb152affcc6b88c153
7
+ data.tar.gz: 4908958355975981fe390403bc3cda4a10b587a8d69bda58cb2840234486d6c4dc049458d1cd63f3ba4897b46b66e1494c1f3f29937dc68e2b2deec97c643d40
@@ -12,6 +12,10 @@ module Myob
12
12
  false
13
13
  end
14
14
 
15
+ def for(user_id, start_date, end_date)
16
+ self.send(:perform_request, url({'Employee' => {'UID' => user_id}, 'StartDate' => start_date, 'EndDate' => end_date}))
17
+ end
18
+
15
19
  # a timesheet is identified based on an employee UID as well as its start and end date
16
20
  # it does not have a UID of its own
17
21
  def url(object = nil, params = nil)
@@ -1,5 +1,5 @@
1
1
  module Myob
2
2
  module Api
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myob-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lumley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-03 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.4.6
109
+ rubygems_version: 2.2.5
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: MYOB AccountRight Live API V2