dor-services-client 4.6.0 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef801fcadd2f15953f03d0ab8d585ea8e7270f523e04b5e3df6c4c434012e60f
4
- data.tar.gz: 2164529e3969e43cf95cf58e15ccd56df9fe1028f3e6ceb34d51c25c9061b7d5
3
+ metadata.gz: 9014a24be0f0040a1dac874abd9609a3902f6a50e1d96e115e8b14d3f7b87b8d
4
+ data.tar.gz: 6455349fdb1ee86f3149cffff1bed6c4f831061d2116c4bca0cca4d0cd564a99
5
5
  SHA512:
6
- metadata.gz: 6c7a8f950f0439e4abcb9f360fc1630e89fb79150d8b6613b0f64d9ef5793f437a22a4d264c12b8143f94545c43dcdd69086320cbb99c44a3cc0cacb0cf999ba
7
- data.tar.gz: 3e5c456d071b41ad79f4850827f8c261449fd0f1d7a949896fb02b36944b6584dba1621f5623ba534ab7453840c5c5518ea1e72d7f2f74e90e79cc3026e48192
6
+ metadata.gz: c327267bd034675c4379923dc2b4468891245350bfe651db7a5904318b803da8635d1242a80ea52d368c15027d7f82124ebec621228aed675f905c34fee7a6a3
7
+ data.tar.gz: 604e1c7eaed370774d6a41c908a429e0770174f7933204810a3130eac992c1f031973d9d7cc875249c6eaa75c5c7f1ff66e7a0fd2ddae2d3f70286f1363ac447
@@ -7,7 +7,7 @@ module Dor
7
7
  class Client
8
8
  # API calls that are about retrieving metadata
9
9
  class Events < VersionedService
10
- Event = Struct.new(:event_type, :data, keyword_init: true)
10
+ Event = Struct.new(:event_type, :data, :timestamp, keyword_init: true)
11
11
 
12
12
  # @param object_identifier [String] the pid for the object
13
13
  def initialize(connection:, version:, object_identifier:)
@@ -32,7 +32,7 @@ module Dor
32
32
  attr_reader :object_identifier
33
33
 
34
34
  def response_to_models(resp)
35
- JSON.parse(resp.body).map { |data| Event.new(event_type: data['event_type'], data: data['data']) }
35
+ JSON.parse(resp.body).map { |data| Event.new(event_type: data['event_type'], data: data['data'], timestamp: data['created_at']) }
36
36
  end
37
37
  end
38
38
  end
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '4.6.0'
6
+ VERSION = '4.7.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne