Class: Vellum::TestSuiteRunExternalExecConfigData
- Inherits:
-
Object
- Object
- Vellum::TestSuiteRunExternalExecConfigData
- Defined in:
- lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
-
#executions ⇒ Object
readonly
to evaluate.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(executions:, additional_properties: nil) ⇒ Vellum::TestSuiteRunExternalExecConfigData constructor
- #to_json ⇒ String
Constructor Details
#initialize(executions:, additional_properties: nil) ⇒ Vellum::TestSuiteRunExternalExecConfigData
23 24 25 26 27 |
# File 'lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb', line 23 def initialize(executions:, additional_properties: nil) @executions = executions @additional_properties = additional_properties @_field_set = { "executions": executions } end |
Instance Attribute Details
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
12 13 14 |
# File 'lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb', line 12 def additional_properties @additional_properties end |
#executions ⇒ Object (readonly)
to evaluate.
10 11 12 |
# File 'lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb', line 10 def executions @executions end |
Class Method Details
.from_json(json_object:) ⇒ Vellum::TestSuiteRunExternalExecConfigData
32 33 34 35 36 37 38 39 40 |
# File 'lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb', line 32 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) executions = parsed_json["executions"]&.map do | item | item = item.to_json Vellum::ExternalTestCaseExecution.from_json(json_object: item) end new(executions: executions, additional_properties: struct) end |
.validate_raw(obj:) ⇒ Void
53 54 55 |
# File 'lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb', line 53 def self.validate_raw(obj:) obj.executions.is_a?(Array) != false || raise("Passed value for field obj.executions is not the expected type, validation failed.") end |
Instance Method Details
#to_json ⇒ String
44 45 46 |
# File 'lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb', line 44 def to_json @_field_set&.to_json end |