Class: Kameleoon::Types::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/types/rule.rb

Overview

Rule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variations) ⇒ Rule

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Rule.



10
11
12
# File 'lib/kameleoon/types/rule.rb', line 10

def initialize(variations)
  @variations = variations
end

Instance Attribute Details

#variationsObject (readonly)

Returns the value of attribute variations.



7
8
9
# File 'lib/kameleoon/types/rule.rb', line 7

def variations
  @variations
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/kameleoon/types/rule.rb', line 14

def to_s
  "Rule{variations:#{@variations}}"
end