atlas_rb 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/atlas_rb/collection.rb +8 -0
- data/lib/atlas_rb/community.rb +8 -0
- data/lib/atlas_rb/work.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f6199b7026fa946e01db62a9d2f0c9600800877de4ee97a39eca1a8133fcc4
|
4
|
+
data.tar.gz: b250384d0267b3830cd3c7e220694614e6d6dd661e79934b63e7032333a10e6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a9e9d05e2d9cd770ae0a1cb872dba6cc52e79213bdc4e8fe1ebe67b78e98ead718d10553ea2353f84e10cff6c9bbe5bc90f4f05d37afc122157f1c6a42c7e42
|
7
|
+
data.tar.gz: f1520621f0f6425f448e9633cf27d8310696a9c81e183388103d43ac8943d7b570479a14afedea9729b4e332f9efb948f37ec9d89d79211d6323bcb0c7a86d76
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.42
|
data/Gemfile.lock
CHANGED
data/lib/atlas_rb/collection.rb
CHANGED
@@ -31,5 +31,13 @@ module AtlasRb
|
|
31
31
|
def self.metadata(id, values)
|
32
32
|
JSON.parse(connection({ metadata: values }).patch(ROUTE + id)&.body)
|
33
33
|
end
|
34
|
+
|
35
|
+
def self.mods(id)
|
36
|
+
connection({}).get(ROUTE + id + '/mods.html')&.body
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.xml(id)
|
40
|
+
connection({}).get(ROUTE + id + '/mods')&.body
|
41
|
+
end
|
34
42
|
end
|
35
43
|
end
|
data/lib/atlas_rb/community.rb
CHANGED
@@ -30,5 +30,13 @@ module AtlasRb
|
|
30
30
|
def self.metadata(id, values)
|
31
31
|
JSON.parse(connection({ metadata: values }).patch(ROUTE + id)&.body)
|
32
32
|
end
|
33
|
+
|
34
|
+
def self.mods(id)
|
35
|
+
connection({}).get(ROUTE + id + '/mods.html')&.body
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.xml(id)
|
39
|
+
connection({}).get(ROUTE + id + '/mods')&.body
|
40
|
+
end
|
33
41
|
end
|
34
42
|
end
|
data/lib/atlas_rb/work.rb
CHANGED
@@ -25,8 +25,11 @@ module AtlasRb
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def self.mods(id)
|
28
|
-
# optional second argument for pure json response?
|
29
28
|
connection({}).get(ROUTE + id + '/mods.html')&.body
|
30
29
|
end
|
30
|
+
|
31
|
+
def self.xml(id)
|
32
|
+
connection({}).get(ROUTE + id + '/mods')&.body
|
33
|
+
end
|
31
34
|
end
|
32
35
|
end
|