Class: Trino::Client::ModelVersions::V0_173::DeleteHandle=Base.new(:handle)
- Inherits:
-
Object
- Object
- Trino::Client::ModelVersions::V0_173::DeleteHandle=Base.new(:handle)
- Defined in:
- lib/trino/client/model_versions/0.173.rb
Class Method Summary collapse
Class Method Details
.decode(hash) ⇒ Object
196 197 198 199 200 201 202 203 204 205 |
# File 'lib/trino/client/model_versions/0.173.rb', line 196 def decode(hash) unless hash.is_a?(Hash) raise TypeError, "Can't convert #{hash.class} to Hash" end obj = allocate obj.send(:initialize_struct, TableHandle.decode(hash['handle']) ) obj end |