Class: Trino::Client::ModelVersions::V0_205::Assignments=Base.new(:assignments)

Inherits:
Object
  • Object
show all
Defined in:
lib/trino/client/model_versions/0.205.rb

Class Method Summary collapse

Class Method Details

.decode(hash) ⇒ Object



342
343
344
345
346
347
348
349
350
351
# File 'lib/trino/client/model_versions/0.205.rb', line 342

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