Module: MessageStore::MessageData
- Included in:
- Read, Write
- Defined in:
- lib/message_store/message_data.rb,
lib/message_store/message_data/read.rb,
lib/message_store/message_data/write.rb,
lib/message_store/message_data/hash/transform.rb
Defined Under Namespace
Classes: Hash, Read, Write
Class Method Summary
collapse
Class Method Details
.included(cls) ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/message_store/message_data.rb', line 3
def self.included(cls)
cls.class_exec do
include Schema::DataStructure
attribute :id, String
attribute :type, String
attribute :data, ::Hash
attribute :metadata, ::Hash
def ===(other)
type == other
end
end
end
|