caren-api 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.2
1
+ 0.12.3
data/caren-api.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caren-api"
8
- s.version = "0.12.2"
8
+ s.version = "0.12.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Foeken"]
@@ -17,6 +17,18 @@ class Caren::Employee < Caren::Base
17
17
  ]
18
18
  end
19
19
 
20
+ def self.search key, value, session
21
+ from_xml session.get( self.search_url(key,value) )
22
+ end
23
+
24
+ def self.find id, session
25
+ from_xml session.get(self.resource_url(id))
26
+ end
27
+
28
+ def self.all session
29
+ from_xml session.get(self.resource_url)
30
+ end
31
+
20
32
  def as_xml
21
33
  { :external_id => self.external_id,
22
34
  :first_name => self.first_name,
@@ -33,4 +45,8 @@ class Caren::Employee < Caren::Base
33
45
  :employee
34
46
  end
35
47
 
48
+ def self.resource_location
49
+ "/api/pro/employees"
50
+ end
51
+
36
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caren-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -276,7 +276,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  segments:
278
278
  - 0
279
- hash: 1773120533062729061
279
+ hash: 1042917722907955935
280
280
  required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  none: false
282
282
  requirements: