caren-api 0.5.18 → 0.5.19

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/caren-api.gemspec +1 -1
  3. data/lib/caren/link.rb +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.18
1
+ 0.5.19
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.5.18"
8
+ s.version = "0.5.19"
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"]
data/lib/caren/link.rb CHANGED
@@ -22,7 +22,7 @@ class Caren::Link < Caren::Base
22
22
  end
23
23
 
24
24
  def pdf session
25
- from_xml session.get(self.pdf_url(self.id))
25
+ self.class.from_xml session.get(self.class.pdf_url(self.id))
26
26
  end
27
27
 
28
28
  def self.all session
@@ -48,7 +48,7 @@ class Caren::Link < Caren::Base
48
48
  :link
49
49
  end
50
50
 
51
- def pdf_url id
51
+ def self.pdf_url id=nil
52
52
  "#{resource_location}/#{id}/pdf"
53
53
  end
54
54
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caren-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 18
10
- version: 0.5.18
9
+ - 19
10
+ version: 0.5.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Foeken