Class: EppoClient::Rule

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

Overview

A class for the Rule object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allocation_key:, conditions:) ⇒ Rule

Returns a new instance of Rule.



30
31
32
33
# File 'lib/rules.rb', line 30

def initialize(allocation_key:, conditions:)
  @allocation_key = allocation_key
  @conditions = conditions
end

Instance Attribute Details

#allocation_keyObject

Returns the value of attribute allocation_key.



28
29
30
# File 'lib/rules.rb', line 28

def allocation_key
  @allocation_key
end

#conditionsObject

Returns the value of attribute conditions.



28
29
30
# File 'lib/rules.rb', line 28

def conditions
  @conditions
end