Class: Trino::Client::ModelVersions::V316::SqlPath=Base.new(:raw_path)

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

Class Method Summary collapse

Class Method Details

.decode(hash) ⇒ Object



1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
# File 'lib/trino/client/model_versions/316.rb', line 1954

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["rawPath"],
  )
  obj
end