Class: Trino::Client::ModelVersions::V351::Mapping=Base.new(:input,:outputs)
- Inherits:
-
Object
- Object
- Trino::Client::ModelVersions::V351::Mapping=Base.new(:input,:outputs)
- Defined in:
- lib/trino/client/model_versions/351.rb
Class Method Summary collapse
Class Method Details
.decode(hash) ⇒ Object
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 |
# File 'lib/trino/client/model_versions/351.rb', line 1227 def decode(hash) unless hash.is_a?(Hash) raise TypeError, "Can't convert #{hash.class} to Hash" end obj = allocate obj.send(:initialize_struct, hash["input"], hash["outputs"], ) obj end |