Class: Altertable::Lakehouse::Models::AutocompleteResponse
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#connections_errors ⇒ Object
readonly
Returns the value of attribute connections_errors.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
-
#suggestions ⇒ Object
readonly
Returns the value of attribute suggestions.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(suggestions:, statement:, connections_errors:) ⇒ AutocompleteResponse
constructor
A new instance of AutocompleteResponse.
Methods inherited from Request
Constructor Details
#initialize(suggestions:, statement:, connections_errors:) ⇒ AutocompleteResponse
Returns a new instance of AutocompleteResponse.
231 232 233 234 235 |
# File 'lib/altertable/lakehouse/models.rb', line 231 def initialize(suggestions:, statement:, connections_errors:) @suggestions = suggestions @statement = statement @connections_errors = connections_errors end |
Instance Attribute Details
#connections_errors ⇒ Object (readonly)
Returns the value of attribute connections_errors.
229 230 231 |
# File 'lib/altertable/lakehouse/models.rb', line 229 def connections_errors @connections_errors end |
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
229 230 231 |
# File 'lib/altertable/lakehouse/models.rb', line 229 def statement @statement end |
#suggestions ⇒ Object (readonly)
Returns the value of attribute suggestions.
229 230 231 |
# File 'lib/altertable/lakehouse/models.rb', line 229 def suggestions @suggestions end |
Class Method Details
.from_h(h) ⇒ Object
237 238 239 240 241 242 243 |
# File 'lib/altertable/lakehouse/models.rb', line 237 def self.from_h(h) new( suggestions: Array(h["suggestions"]).map { |suggestion| AutocompleteSuggestion.from_h(suggestion) }, statement: h["statement"], connections_errors: h["connections_errors"] || {} ) end |