A message defines the structure of the data we store in encrypted attributes. It contains:
See Encryptor#encrypt
Methods
- #
-
- N
-
Attributes
[RW]
|
headers |
|
[RW]
|
payload |
|
Class Public methods
new(payload: nil, headers: {})
Link
Source:
show
|
on GitHub
def initialize(payload: nil, headers: {})
validate_payload_type(payload)
@payload = payload
@headers = Properties.new(headers)
end
Instance Public methods
==(other_message)
Link
Source:
show
|
on GitHub
def ==(other_message)
payload == other_message.payload && headers == other_message.headers
end