Class: Altertable::Lakehouse::Models::ValidateResponse

Inherits:
Request
  • Object
show all
Defined in:
lib/altertable/lakehouse/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#to_h

Constructor Details

#initialize(valid:, statement:, connections_errors: nil, error: nil) ⇒ ValidateResponse

Returns a new instance of ValidateResponse.



117
118
119
120
121
122
# File 'lib/altertable/lakehouse/models.rb', line 117

def initialize(valid:, statement:, connections_errors: nil, error: nil)
  @valid = valid
  @statement = statement
  @connections_errors = connections_errors
  @error = error
end

Instance Attribute Details

#connections_errorsObject (readonly)

Returns the value of attribute connections_errors.



115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def connections_errors
  @connections_errors
end

#errorObject (readonly)

Returns the value of attribute error.



115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def error
  @error
end

#statementObject (readonly)

Returns the value of attribute statement.



115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def statement
  @statement
end

#validObject (readonly)

Returns the value of attribute valid.



115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def valid
  @valid
end

Class Method Details

.from_h(h) ⇒ Object



124
125
126
127
128
129
130
131
# File 'lib/altertable/lakehouse/models.rb', line 124

def self.from_h(h)
  new(
    valid: h["valid"],
    statement: h["statement"],
    connections_errors: h["connections_errors"],
    error: h["error"]
  )
end