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.
- data/VERSION +1 -1
- data/caren-api.gemspec +1 -1
- data/lib/caren/link.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.19
|
data/caren-api.gemspec
CHANGED
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:
|
4
|
+
hash: 45
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 19
|
10
|
+
version: 0.5.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andre Foeken
|