README.md in preservation-client-6.1.0 vs README.md in preservation-client-6.2.0

- old
+ new

@@ -29,11 +29,11 @@ ```ruby require 'preservation/client' def do_the_thing - current_version_as_integer = client.current_version('druid:oo000oo0000') + current_version_as_integer = client.objects.current_version('druid:oo000oo0000') end private def client @@ -49,11 +49,11 @@ def initialize Preservation::Client.configure(url: Settings.preservation_catalog.url, token: Settings.preservation_catalog.token) end def do_the_thing - current_version_as_integer = Preservation::Client.current_version('druid:oo000oo0000') + current_version_as_integer = Preservation::Client.objects.current_version('druid:oo000oo0000') end ``` Note that the client may **not** be used without first having been configured, and both the `url` and `token` keywords are **required**. @@ -72,9 +72,10 @@ ### Retrieve file signature (checksum) information - `client.objects.checksums(druids: druids)` - returns info as raw csv - `client.objects.checksums(druids: druids, format: 'json')` - returns info as json +- `client.objects.checksum(druid: 'oo000oo0000')` - returns info as array of hashes ### Retrieve individual files from preservation - `client.objects.content(druid: 'oo000oo0000', filepath: 'my_file.pdf')` - returns contents of my_file.pdf in most recent version of Moab object - You may specify the version: