класс ActiveRecord::Encryption::Message
Сообщение определяет структуру данных, которые мы храним в зашифрованных атрибутах. Оно содержит:
-
Зашифрованную полезную нагрузку
-
Список незашифрованных заголовков
Атрибуты
headers[RW]
payload[RW]
Публичные методы класса
# File activerecord/lib/active_record/encryption/message.rb, line 14
def initialize(payload: nil, headers: {})
validate_payload_type(payload)
@payload = payload
@headers = Properties.new(headers)
end Публичные методы экземпляра
# File activerecord/lib/active_record/encryption/message.rb, line 21 def ==(other_message) payload == other_message.payload && headers == other_message.headers end
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.