atlas_rb 0.0.86 → 0.0.87
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.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/atlas_rb/collection.rb +4 -3
- data/lib/atlas_rb/community.rb +4 -3
- 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: dc46e02febd818ebeae248bdfe2cd09bb98621bea3c03b9bb63c6e6b00047da6
|
|
4
|
+
data.tar.gz: 8b933b86bc86d6127789d22b6585bef3bb590b5ca40a14ae50cb456356d0de26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 642f8e95f4113401726f28d4221e79e9e7225463a94d633426775cf57e969f07bc0414446d6ebf0fd859d7e334f235ff7dc3b04639729b7b27472adfbd09fc4d
|
|
7
|
+
data.tar.gz: fa7d393184858673d6f9ea6138cdc77bd01d7f62f73298d16018935f49b079eea9055fdfd282b2098b7327bdcc3d1b1a8f5c673c5a7eaf52620efa12c54216e0
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.87
|
data/Gemfile.lock
CHANGED
data/lib/atlas_rb/collection.rb
CHANGED
|
@@ -63,12 +63,13 @@ module AtlasRb
|
|
|
63
63
|
# List the Works in a Collection.
|
|
64
64
|
#
|
|
65
65
|
# @param id [String] the Collection ID.
|
|
66
|
-
# @return [
|
|
66
|
+
# @return [Array<AtlasRb::Mash>] the child listing from
|
|
67
|
+
# `GET /collections/<id>/children`, one entry per Work.
|
|
67
68
|
#
|
|
68
69
|
# @example
|
|
69
|
-
# AtlasRb::Collection.children("col-456")
|
|
70
|
+
# AtlasRb::Collection.children("col-456").each { |work| puts work.noid }
|
|
70
71
|
def self.children(id)
|
|
71
|
-
|
|
72
|
+
JSON.parse(connection({}).get(ROUTE + id + '/children')&.body).map { |entry| AtlasRb::Mash.new(entry) }
|
|
72
73
|
end
|
|
73
74
|
|
|
74
75
|
# Replace a Collection's metadata by uploading a MODS XML document.
|
data/lib/atlas_rb/community.rb
CHANGED
|
@@ -67,12 +67,13 @@ module AtlasRb
|
|
|
67
67
|
# List the immediate children (sub-Communities and Collections) of a Community.
|
|
68
68
|
#
|
|
69
69
|
# @param id [String] the parent Community ID.
|
|
70
|
-
# @return [
|
|
70
|
+
# @return [Array<AtlasRb::Mash>] the child listing from
|
|
71
|
+
# `GET /communities/<id>/children`, one entry per child.
|
|
71
72
|
#
|
|
72
73
|
# @example
|
|
73
|
-
# AtlasRb::Community.children("c-123")
|
|
74
|
+
# AtlasRb::Community.children("c-123").each { |child| puts child.noid }
|
|
74
75
|
def self.children(id)
|
|
75
|
-
|
|
76
|
+
JSON.parse(connection({}).get(ROUTE + id + '/children')&.body).map { |entry| AtlasRb::Mash.new(entry) }
|
|
76
77
|
end
|
|
77
78
|
|
|
78
79
|
# Replace a Community's metadata by uploading a MODS XML document.
|