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 +1 -1
- data/caren-api.gemspec +1 -1
- data/lib/caren/employee.rb +16 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.3
|
data/caren-api.gemspec
CHANGED
data/lib/caren/employee.rb
CHANGED
@@ -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.
|
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:
|
279
|
+
hash: 1042917722907955935
|
280
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
281
|
none: false
|
282
282
|
requirements:
|