myob-api 0.0.7 → 0.1.0

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: 5b76ea45fabda121df3b141b118a57f2d0daab81
4
- data.tar.gz: a8a4735c0c664ba1d2025ad3f68c282c496d7f98
3
+ metadata.gz: b370acb331a1b9161cedebced417265b558b137b
4
+ data.tar.gz: 6fb248ba9b4fcc05087079bd30065519cd22c5c4
5
5
  SHA512:
6
- metadata.gz: 2da0ad3e1e1077845e719d7560a5376f551bc0b16e250f0de979823af354c067ca4c5c9eb8cc4435a50e0d624865d70fcc788d9fa5203634c030b21c13497575
7
- data.tar.gz: 232a7691903c42c785b49eae51ed47cd4d63dc39fb6933517844756baa43670fbda345b295271a8fa481babb006edf3388328b63713fb189eef194d2002c3b10
6
+ metadata.gz: 7a3a9cd31720a5c71e803c9b576c51c75a042f8aa9525f3b87eeeb6d1222b0e7aec4077f8fd648cce61e26d8be2d608b9620cd8488c0335a62de30e1a5e3d971
7
+ data.tar.gz: 338e562661aa6fe09b8f8266d3ef145c331dbd17b7fb2bdc8b0437452446d61a793b49538a82eb7206ea957a11b01bc63f29b8cfdc3a2d9c673fcc8c5c9afe3d
data/README.md CHANGED
@@ -135,7 +135,3 @@ Return a list of all employees
135
135
  3. Commit your changes (`git commit -am 'Add some feature'`)
136
136
  4. Push to the branch (`git push origin my-new-feature`)
137
137
  5. Create new Pull Request
138
-
139
-
140
- [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/davidlumley/myob-api/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
141
-
@@ -8,8 +8,11 @@ require 'myob/api/models/company_file'
8
8
  require 'myob/api/models/contact'
9
9
  require 'myob/api/models/customer'
10
10
  require 'myob/api/models/employee'
11
+ require 'myob/api/models/employee_payroll_details'
11
12
 
12
13
  require 'myob/api/models/payroll_category'
13
14
  require 'myob/api/models/wage'
14
15
 
16
+ require 'myob/api/models/timesheet'
17
+
15
18
  require 'myob/api/client'
@@ -14,10 +14,13 @@ module Myob
14
14
  model :Contact
15
15
  model :Customer
16
16
  model :Employee
17
+ model :EmployeePayrollDetail
17
18
 
18
19
  model :PayrollCategory
19
20
  model :Wage
20
21
 
22
+ model :Timesheet
23
+
21
24
  @redirect_uri = options[:redirect_uri]
22
25
  @consumer = options[:consumer]
23
26
  @access_token = options[:access_token]
@@ -23,6 +23,10 @@ module Myob
23
23
  end
24
24
  end
25
25
 
26
+ def get(query = nil)
27
+ all(query)
28
+ end
29
+
26
30
  def first(query = nil)
27
31
  model_data = self.all(query)
28
32
  model_data[0] if model_data.length > 0
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class EmployeePayrollDetail < Myob::Api::Model::Base
5
+ def model_route
6
+ 'Contact/EmployeePayrollDetails'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class Timesheet < Myob::Api::Model::Base
5
+ def model_route
6
+ 'Payroll/Timesheet'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Myob
2
2
  module Api
3
- VERSION = "0.0.7"
3
+ VERSION = "0.1.0"
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.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lumley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -73,7 +73,9 @@ files:
73
73
  - lib/myob/api/models/contact.rb
74
74
  - lib/myob/api/models/customer.rb
75
75
  - lib/myob/api/models/employee.rb
76
+ - lib/myob/api/models/employee_payroll_details.rb
76
77
  - lib/myob/api/models/payroll_category.rb
78
+ - lib/myob/api/models/timesheet.rb
77
79
  - lib/myob/api/models/wage.rb
78
80
  - lib/myob/api/version.rb
79
81
  - myob-api.gemspec