atlas_rb 0.0.85 → 0.0.86
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/work.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: edb369e9dcfdf666142e223a76650ec1e8d56d41c68fe0e4d999b743ea2571d0
|
|
4
|
+
data.tar.gz: 2d99a9c9916ec579fac9f98523082fc5bb69f637d4cea05b24ed40c85ce86554
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1d8a33a03209ef903fc15027b5d9d5bd57abd495d96ca93609e4939658fcd2b7b95029fdde2f8e43d28cd39c3231bdba6e8180049bd0be029c8acffd8deb398
|
|
7
|
+
data.tar.gz: f9a267f330f6ea11ba553249b72cd29d29947550f85d18a6228d2fac40fb564dc3d3a3692ae5bf334de56aeef6a529df5289676630a9ca513659bb550bc7dc77
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.86
|
data/Gemfile.lock
CHANGED
data/lib/atlas_rb/work.rb
CHANGED
|
@@ -96,12 +96,13 @@ module AtlasRb
|
|
|
96
96
|
# render each file's display name, size, and download URL.
|
|
97
97
|
#
|
|
98
98
|
# @param id [String] the Work ID.
|
|
99
|
-
# @return [
|
|
99
|
+
# @return [Array<AtlasRb::Mash>] the listing from `GET /works/<id>/files`,
|
|
100
|
+
# one entry per attached file.
|
|
100
101
|
#
|
|
101
102
|
# @example
|
|
102
|
-
# AtlasRb::Work.files("w-789")
|
|
103
|
+
# AtlasRb::Work.files("w-789").each { |f| puts f.label }
|
|
103
104
|
def self.files(id)
|
|
104
|
-
|
|
105
|
+
JSON.parse(connection({}).get(ROUTE + id + '/files')&.body).map { |entry| AtlasRb::Mash.new(entry) }
|
|
105
106
|
end
|
|
106
107
|
|
|
107
108
|
# Fetch the Work's MODS representation in the requested format.
|