Class: Serialbench::Models::BenchmarkConfig
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Serialbench::Models::BenchmarkConfig
- Defined in:
- lib/serialbench/models/benchmark_config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_file(file_path) ⇒ Object
70 71 72 |
# File 'lib/serialbench/models/benchmark_config.rb', line 70 def self.from_file(file_path) from_yaml(IO.read(file_path)) end |
Instance Method Details
#to_file(file_path) ⇒ Object
66 67 68 |
# File 'lib/serialbench/models/benchmark_config.rb', line 66 def to_file(file_path) File.write(file_path, to_yaml) end |