Class: CustomField

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#keyObject

Returns the value of attribute key.



6
7
8
# File 'lib/perfecto-reporting/model/CustomField.rb', line 6

def key
  @key
end

#valueObject

Returns the value of attribute value.



6
7
8
# File 'lib/perfecto-reporting/model/CustomField.rb', line 6

def value
  @value
end