Class: Trino::Client::ModelVersions::V0_173::Assignments=Base.new(:assignments)
- Inherits:
-
Object
- Object
- Trino::Client::ModelVersions::V0_173::Assignments=Base.new(:assignments)
- Defined in:
- lib/trino/client/model_versions/0.173.rb
Class Method Summary collapse
Class Method Details
.decode(hash) ⇒ Object
284 285 286 287 288 289 290 291 292 293 |
# File 'lib/trino/client/model_versions/0.173.rb', line 284 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 |