Class: Altertable::Lakehouse::Models::ValidateResponse
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#connections_errors ⇒ Object
readonly
Returns the value of attribute connections_errors.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
-
#valid ⇒ Object
readonly
Returns the value of attribute valid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(valid:, statement:, connections_errors: nil, error: nil) ⇒ ValidateResponse
constructor
A new instance of ValidateResponse.
Methods inherited from Request
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_errors ⇒ Object (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 |
#error ⇒ Object (readonly)
Returns the value of attribute error.
115 116 117 |
# File 'lib/altertable/lakehouse/models.rb', line 115 def error @error end |
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
115 116 117 |
# File 'lib/altertable/lakehouse/models.rb', line 115 def statement @statement end |
#valid ⇒ Object (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 |