Class: Trino::Client::ModelVersions::V316::ArgumentBinding=Base.new(:expression,:constant)
- Inherits:
-
Object
- Object
- Trino::Client::ModelVersions::V316::ArgumentBinding=Base.new(:expression,:constant)
- Defined in:
- lib/trino/client/model_versions/316.rb
Class Method Summary collapse
Class Method Details
.decode(hash) ⇒ Object
354 355 356 357 358 359 360 361 362 363 364 |
# File 'lib/trino/client/model_versions/316.rb', line 354 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["expression"], hash["constant"], ) obj end |