caren-api 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.1
1
+ 0.12.2
data/caren-api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caren-api"
8
- s.version = "0.12.1"
8
+ s.version = "0.12.2"
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"]
12
- s.date = "2013-06-13"
12
+ s.date = "2013-06-16"
13
13
  s.description = "You can use this gem as inspiration of the base of your connections with Caren."
14
14
  s.email = "andre.foeken@nedap.com"
15
15
  s.extra_rdoc_files = [
@@ -1,14 +1,30 @@
1
1
  class Caren::Employee < Caren::Base
2
2
 
3
3
  def self.keys
4
- [ :external_id, # String (Your client id)
5
- :first_name, # String
6
- :last_name, # String
7
- :bio, # Text
8
- :photo # String
4
+ [ :id, # Integer (Caren id, if applicable)
5
+ :external_id, # String (Your employee id)
6
+ :first_name, # String
7
+ :last_name, # String
8
+ :role, # String
9
+ :agb_code, # String
10
+ :edi_address, # String
11
+ :male, # Boolean
12
+ :care_provider_id, # Integer
13
+ :bio, # Text
14
+ :photo, # String
15
+ :created_at, # Datetime
16
+ :updated_at # Datetime
9
17
  ]
10
18
  end
11
19
 
20
+ def as_xml
21
+ { :external_id => self.external_id,
22
+ :first_name => self.first_name,
23
+ :last_name => self.last_name,
24
+ :bio => self.bio,
25
+ :photo => self.photo }
26
+ end
27
+
12
28
  def self.array_root
13
29
  :employees
14
30
  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.1
4
+ version: 0.12.2
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-06-13 00:00:00.000000000 Z
12
+ date: 2013-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -276,7 +276,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  segments:
278
278
  - 0
279
- hash: 2520638922574227699
279
+ hash: 1773120533062729061
280
280
  required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  none: false
282
282
  requirements: