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

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

Class Method Summary collapse

Class Method Details

.decode(hash) ⇒ Object



2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
# File 'lib/trino/client/model_versions/351.rb', line 2079

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