Class: ConfigResult
- Inherits:
-
Object
- Object
- ConfigResult
- Defined in:
- lib/config_result.rb
Instance Attribute Summary collapse
-
#gate_value ⇒ Object
Returns the value of attribute gate_value.
-
#json_value ⇒ Object
Returns the value of attribute json_value.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#secondary_exposures ⇒ Object
Returns the value of attribute secondary_exposures.
Instance Method Summary collapse
-
#initialize(name, gate_value = false, json_value = {}, rule_id = '', secondary_exposures = []) ⇒ ConfigResult
constructor
A new instance of ConfigResult.
Constructor Details
#initialize(name, gate_value = false, json_value = {}, rule_id = '', secondary_exposures = []) ⇒ ConfigResult
Returns a new instance of ConfigResult.
8 9 10 11 12 13 14 |
# File 'lib/config_result.rb', line 8 def initialize(name, gate_value = false, json_value = {}, rule_id = '', secondary_exposures = []) @name = name @gate_value = gate_value @json_value = json_value @rule_id = rule_id @secondary_exposures = secondary_exposures.is_a?(Array) ? secondary_exposures : [] end |
Instance Attribute Details
#gate_value ⇒ Object
Returns the value of attribute gate_value.
3 4 5 |
# File 'lib/config_result.rb', line 3 def gate_value @gate_value end |
#json_value ⇒ Object
Returns the value of attribute json_value.
4 5 6 |
# File 'lib/config_result.rb', line 4 def json_value @json_value end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/config_result.rb', line 2 def name @name end |
#rule_id ⇒ Object
Returns the value of attribute rule_id.
5 6 7 |
# File 'lib/config_result.rb', line 5 def rule_id @rule_id end |
#secondary_exposures ⇒ Object
Returns the value of attribute secondary_exposures.
6 7 8 |
# File 'lib/config_result.rb', line 6 def secondary_exposures @secondary_exposures end |