Class: Trino::Client::ModelVersions::V0_178::Assignments=Base.new(:assignments)
- Inherits:
-
Object
- Object
- Trino::Client::ModelVersions::V0_178::Assignments=Base.new(:assignments)
- Defined in:
- lib/trino/client/model_versions/0.178.rb
Class Method Summary collapse
Class Method Details
.decode(hash) ⇒ Object
320 321 322 323 324 325 326 327 328 329 |
# File 'lib/trino/client/model_versions/0.178.rb', line 320 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["assignments"], ) obj end |