Class: EppoClient::Condition
- Inherits:
-
Object
- Object
- EppoClient::Condition
- Defined in:
- lib/rules.rb
Overview
A class for the Condition object
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(operator:, attribute:, value:) ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize(operator:, attribute:, value:) ⇒ Condition
Returns a new instance of Condition.
19 20 21 22 23 |
# File 'lib/rules.rb', line 19 def initialize(operator:, attribute:, value:) @operator = operator @attribute = attribute @value = value end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
17 18 19 |
# File 'lib/rules.rb', line 17 def attribute @attribute end |
#operator ⇒ Object
Returns the value of attribute operator.
17 18 19 |
# File 'lib/rules.rb', line 17 def operator @operator end |
#value ⇒ Object
Returns the value of attribute value.
17 18 19 |
# File 'lib/rules.rb', line 17 def value @value end |