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

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

Class Method Summary collapse

Class Method Details

.decode(hash) ⇒ Object



1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
# File 'lib/trino/client/model_versions/303.rb', line 1938

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