Class: Kameleoon::Types::Rule
- Inherits:
-
Object
- Object
- Kameleoon::Types::Rule
- Defined in:
- lib/kameleoon/types/rule.rb
Overview
Rule
Instance Attribute Summary collapse
-
#variations ⇒ Object
readonly
Returns the value of attribute variations.
Instance Method Summary collapse
-
#initialize(variations) ⇒ Rule
constructor
private
A new instance of Rule.
- #to_s ⇒ Object
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
#variations ⇒ Object (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_s ⇒ Object
14 15 16 |
# File 'lib/kameleoon/types/rule.rb', line 14 def to_s "Rule{variations:#{@variations}}" end |