Class: FeatureHub::Sdk::Impl::RolloutStrategyAttributeCondition
- Inherits:
-
Object
- Object
- FeatureHub::Sdk::Impl::RolloutStrategyAttributeCondition
- Defined in:
- lib/feature_hub/sdk/impl/rollout_holders.rb
Overview
represents a condition for this attribute
Instance Method Summary collapse
- #ends_with? ⇒ Boolean
- #equals? ⇒ Boolean
- #excludes? ⇒ Boolean
- #greater? ⇒ Boolean
- #greater_equals? ⇒ Boolean
- #includes? ⇒ Boolean
-
#initialize(attr) ⇒ RolloutStrategyAttributeCondition
constructor
A new instance of RolloutStrategyAttributeCondition.
- #less? ⇒ Boolean
- #less_equals? ⇒ Boolean
- #not_equals? ⇒ Boolean
- #regex? ⇒ Boolean
- #starts_with? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(attr) ⇒ RolloutStrategyAttributeCondition
Returns a new instance of RolloutStrategyAttributeCondition.
9 10 11 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 9 def initialize(attr) @attr = attr end |
Instance Method Details
#ends_with? ⇒ Boolean
17 18 19 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 17 def ends_with? @attr == "ENDS_WITH" end |
#equals? ⇒ Boolean
13 14 15 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 13 def equals? @attr == "EQUALS" end |
#excludes? ⇒ Boolean
49 50 51 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 49 def excludes? @attr == "EXCLUDES" end |
#greater? ⇒ Boolean
25 26 27 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 25 def greater? @attr == "GREATER" end |
#greater_equals? ⇒ Boolean
29 30 31 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 29 def greater_equals? @attr == "GREATER_EQUALS" end |
#includes? ⇒ Boolean
45 46 47 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 45 def includes? @attr == "INCLUDES" end |
#less? ⇒ Boolean
33 34 35 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 33 def less? @attr == "LESS" end |
#less_equals? ⇒ Boolean
37 38 39 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 37 def less_equals? @attr == "LESS_EQUALS" end |
#not_equals? ⇒ Boolean
41 42 43 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 41 def not_equals? @attr == "NOT_EQUALS" end |
#regex? ⇒ Boolean
53 54 55 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 53 def regex? @attr == "REGEX" end |
#starts_with? ⇒ Boolean
21 22 23 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 21 def starts_with? @attr == "STARTS_WITH" end |
#to_s ⇒ Object
57 58 59 |
# File 'lib/feature_hub/sdk/impl/rollout_holders.rb', line 57 def to_s @attr end |