Class: Featureflip::Models::Condition
- Inherits:
-
Struct
- Object
- Struct
- Featureflip::Models::Condition
- Defined in:
- lib/featureflip/models/flag.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#negate ⇒ Object
Returns the value of attribute negate.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(attribute:, operator:, values:, negate: false) ⇒ Condition
constructor
A new instance of Condition.
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
#attribute ⇒ Object
Returns the value of attribute attribute
7 8 9 |
# File 'lib/featureflip/models/flag.rb', line 7 def attribute @attribute end |
#negate ⇒ Object
Returns the value of attribute negate
7 8 9 |
# File 'lib/featureflip/models/flag.rb', line 7 def negate @negate end |
#operator ⇒ Object
Returns the value of attribute operator
7 8 9 |
# File 'lib/featureflip/models/flag.rb', line 7 def operator @operator end |
#values ⇒ Object
Returns the value of attribute values
7 8 9 |
# File 'lib/featureflip/models/flag.rb', line 7 def values @values end |