Class: CustomField
- Inherits:
-
Object
- Object
- CustomField
- Defined in:
- lib/perfecto-reporting/model/CustomField.rb
Overview
CustomField - class
Defines a hash list of all the custom field values defined for the test context
The context fields should be saved as part of the Context and attached to the test report
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ CustomField
constructor
A new instance of CustomField.
Constructor Details
#initialize(key, value) ⇒ CustomField
Returns a new instance of CustomField.
7 8 9 10 |
# File 'lib/perfecto-reporting/model/CustomField.rb', line 7 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/perfecto-reporting/model/CustomField.rb', line 6 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/perfecto-reporting/model/CustomField.rb', line 6 def value @value end |