Spec-Zone.ru › Ruby on Rails 7.2

class ActiveRecord::Encryption::Message

Parent:
Object

A message defines the structure of the data we store in encrypted attributes. It contains:

  • An encrypted payload

  • A list of unencrypted headers

See Encryptor#encrypt

Атрибуты

headers[RW]
payload[RW]

Публичные методы класса

new(payload: nil, headers: {}) Показать исходный код
# 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

Публичные методы экземпляра

==(other_message) Показать исходный код
# 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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API