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

Inherits:
Object
  • Object
show all
Defined in:
activerecord/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.



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

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end