123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Encryption::ExtendedDeterministicQueries::AdditionalValue

Relationships & Source Files
Inherits: Object
Defined in: activerecord/lib/active_record/encryption/extended_deterministic_queries.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(value, type) ⇒ AdditionalValue

[ GitHub ]

  
# File 'activerecord/lib/active_record/encryption/extended_deterministic_queries.rb', line 137

def initialize(value, type)
  @type = type
  @value = process(value)
end

Instance Attribute Details

#type (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/encryption/extended_deterministic_queries.rb', line 135

attr_reader :value, :type

#value (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/encryption/extended_deterministic_queries.rb', line 135

attr_reader :value, :type

Instance Method Details

#process(value) (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/encryption/extended_deterministic_queries.rb', line 143

def process(value)
  type.serialize(value)
end