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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, type) ⇒ AdditionalValue

Returns a new instance of AdditionalValue.



124
125
126
127
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 124

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



122
123
124
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 122

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



122
123
124
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 122

def value
  @value
end