Class: Serialbench::Models::EnvironmentConfig
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Serialbench::Models::EnvironmentConfig
- Defined in:
- lib/serialbench/models/environment_config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_file(file_path) ⇒ Object
67 68 69 |
# File 'lib/serialbench/models/environment_config.rb', line 67 def self.from_file(file_path) from_yaml(IO.read(file_path)) end |
Instance Method Details
#to_file(file_path) ⇒ Object
63 64 65 |
# File 'lib/serialbench/models/environment_config.rb', line 63 def to_file(file_path) File.write(file_path, to_yaml) end |