Class: EppoClient::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/rules.rb

Overview

A class for the Condition object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributeObject

Returns the value of attribute attribute.



17
18
19
# File 'lib/rules.rb', line 17

def attribute
  @attribute
end

#operatorObject

Returns the value of attribute operator.



17
18
19
# File 'lib/rules.rb', line 17

def operator
  @operator
end

#valueObject

Returns the value of attribute value.



17
18
19
# File 'lib/rules.rb', line 17

def value
  @value
end