class Determinator::FixedDetermination
Attributes
constraints[R]
feature_on[R]
name[R]
variant[R]
Public Class Methods
new(feature_on:, variant:, name: '', constraints: {})
click to toggle source
# File lib/determinator/fixed_determination.rb, line 5 def initialize(feature_on:, variant:, name: '', constraints: {}) @name = name @feature_on = feature_on @variant = variant @constraints = constraints end
Public Instance Methods
==(other)
click to toggle source
# File lib/determinator/fixed_determination.rb, line 20 def ==(other) return false unless other.is_a?(self.class) other.feature_on == feature_on && other.variant == variant && other.constraints == constraints end
inspect()
click to toggle source
# File lib/determinator/fixed_determination.rb, line 12 def inspect "<feature_on: #{feature_on}, variant: #{variant}, constraints: #{constraints}" end
to_explain_params()
click to toggle source
# File lib/determinator/fixed_determination.rb, line 16 def to_explain_params { name: name } end