方法
属性
[RW] | 标头 | |
[RW] | 有效负载 |
类公共方法
new(payload: nil, headers: {}) 链接
来源: 显示 | 在 GitHub 上
# 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) 链接
来源: 显示 | 在 GitHub 上
# File activerecord/lib/active_record/encryption/message.rb, line 21 def ==(other_message) payload == other_message.payload && headers == other_message.headers end