Class: Featureflip::Models::Condition

Inherits:
Struct
  • Object
show all
Defined in:
lib/featureflip/models/flag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute:, operator:, values:, negate: false) ⇒ Condition

Returns a new instance of Condition.



8
9
10
# File 'lib/featureflip/models/flag.rb', line 8

def initialize(attribute:, operator:, values:, negate: false)
  super
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



7
8
9
# File 'lib/featureflip/models/flag.rb', line 7

def attribute
  @attribute
end

#negateObject

Returns the value of attribute negate

Returns:

  • (Object)

    the current value of negate



7
8
9
# File 'lib/featureflip/models/flag.rb', line 7

def negate
  @negate
end

#operatorObject

Returns the value of attribute operator

Returns:

  • (Object)

    the current value of operator



7
8
9
# File 'lib/featureflip/models/flag.rb', line 7

def operator
  @operator
end

#valuesObject

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



7
8
9
# File 'lib/featureflip/models/flag.rb', line 7

def values
  @values
end