evt-messaging 0.8.1.0 → 0.9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/message.rb +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a8a199b9d607303edd1d695656791719584c68
|
4
|
+
data.tar.gz: abac813b8e67d27e9c3881b52bf512a48e4d1e75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8567867e420f256d3fb323f22838cc6e79854b02cdcb226cf078813dc9523c4e83a5663790ef63a8b69dcab54679408dbd892c9845f35aea3f781fcfa4f839
|
7
|
+
data.tar.gz: c374f7b7dadff1ace16f1869bef02784d3f5e14c988a3efa76a79075e796d0d172bd6585810c33727e0527ae312ea81f005499f0457eea89b099fec336544c1e
|
data/lib/messaging/message.rb
CHANGED
@@ -11,20 +11,17 @@ module Messaging
|
|
11
11
|
extend Transformer
|
12
12
|
|
13
13
|
attribute :id, String
|
14
|
+
attribute :metadata, Metadata, default: Metadata.new
|
14
15
|
|
15
16
|
def self.transient_attributes
|
16
17
|
[
|
17
|
-
:id
|
18
|
+
:id,
|
19
|
+
:metadata
|
18
20
|
]
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
22
24
|
|
23
|
-
attr_writer :metadata
|
24
|
-
def metadata
|
25
|
-
@metadata ||= Metadata.new
|
26
|
-
end
|
27
|
-
|
28
25
|
def message_type
|
29
26
|
self.class.message_type
|
30
27
|
end
|