Class: Hackle::RemoteConfigDecision
- Inherits:
-
Object
- Object
- Hackle::RemoteConfigDecision
- Defined in:
- lib/hackle/decision.rb
Instance Attribute Summary collapse
- #reason ⇒ String readonly
- #value ⇒ Object? readonly
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value, reason) ⇒ RemoteConfigDecision
constructor
A new instance of RemoteConfigDecision.
- #to_s ⇒ Object
Constructor Details
#initialize(value, reason) ⇒ RemoteConfigDecision
Returns a new instance of RemoteConfigDecision.
98 99 100 101 |
# File 'lib/hackle/decision.rb', line 98 def initialize(value, reason) @value = value @reason = reason end |
Instance Attribute Details
#reason ⇒ String (readonly)
94 95 96 |
# File 'lib/hackle/decision.rb', line 94 def reason @reason end |
#value ⇒ Object? (readonly)
91 92 93 |
# File 'lib/hackle/decision.rb', line 91 def value @value end |
Instance Method Details
#==(other) ⇒ Object
103 104 105 106 107 |
# File 'lib/hackle/decision.rb', line 103 def ==(other) other.is_a?(RemoteConfigDecision) && value == other.value && reason == other.reason end |
#to_s ⇒ Object
109 110 111 |
# File 'lib/hackle/decision.rb', line 109 def to_s "RemoteConfigDecision(value=#{value}, reason=#{reason})" end |