caren-api 0.4.17 → 0.4.18

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.17
1
+ 0.4.18
data/caren-api.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{caren-api}
8
- s.version = "0.4.17"
8
+ s.version = "0.4.18"
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"]
@@ -45,11 +45,11 @@ class Caren::CareProvider < Caren::Base
45
45
  end
46
46
 
47
47
  def update session
48
- from_xml session.put(self.resource_url(self.id), self.to_xml)
48
+ self.class.from_xml session.put(self.resource_url(self.id), self.to_xml)
49
49
  end
50
50
 
51
51
  def update_logo logo_hash_or_path, session
52
- from_xml session.put(self.resource_url(self.id), self.to_logo_xml(logo_hash_or_path))
52
+ self.class.from_xml session.put(self.resource_url(self.id), self.to_logo_xml(logo_hash_or_path))
53
53
  end
54
54
 
55
55
  def as_xml
@@ -23,7 +23,7 @@ class Caren::ExternalMessage < Caren::Base
23
23
  end
24
24
 
25
25
  def create session
26
- from_xml session.post self.class.resource_url(self.subject_id), self.to_xml
26
+ self.class.from_xml session.post self.class.resource_url(self.subject_id), self.to_xml
27
27
  end
28
28
 
29
29
  def delete session
data/lib/caren/link.rb CHANGED
@@ -27,7 +27,7 @@ class Caren::Link < Caren::Base
27
27
  # Request to create a new link. Example:
28
28
  # Caren::Link.new( :patient_number => 1234 ).create
29
29
  def create session
30
- from_xml session.post(self.resource_url, self.to_xml)
30
+ self.class.from_xml session.post(self.resource_url, self.to_xml)
31
31
  end
32
32
 
33
33
  def as_xml
data/lib/caren/product.rb CHANGED
@@ -33,15 +33,15 @@ class Caren::Product < Caren::Base
33
33
  end
34
34
 
35
35
  def create session
36
- from_xml session.post(self.resource_url, self.to_xml)
36
+ self.class.from_xml session.post(self.resource_url, self.to_xml)
37
37
  end
38
38
 
39
39
  def update session
40
- from_xml session.put(self.resource_url(self.id), self.to_xml)
40
+ self.class.from_xml session.put(self.resource_url(self.id), self.to_xml)
41
41
  end
42
42
 
43
43
  def update_photo photo_hash_or_path, session
44
- session.put(self.resource_url(self.id), self.to_photo_xml(photo_hash_or_path))
44
+ self.class.from_xml session.put(self.resource_url(self.id), self.to_photo_xml(photo_hash_or_path))
45
45
  end
46
46
 
47
47
  def as_xml
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 17
8
+ - 18
9
9
  segments_generated: true
10
- version: 0.4.17
10
+ version: 0.4.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Foeken