Class: Altertable::Lakehouse::Models::CancelQueryResponse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#to_h

Constructor Details

#initialize(cancelled:, message:) ⇒ CancelQueryResponse

Returns a new instance of CancelQueryResponse.

Parameters:

  • cancelled: (Boolean)
  • message: (String)


175
176
177
178
# File 'lib/altertable/lakehouse/models.rb', line 175

def initialize(cancelled:, message:)
  @cancelled = cancelled
  @message = message
end

Instance Attribute Details

#cancelledBoolean (readonly)

Returns the value of attribute cancelled.

Returns:

  • (Boolean)


173
174
175
# File 'lib/altertable/lakehouse/models.rb', line 173

def cancelled
  @cancelled
end

#messageString (readonly)

Returns the value of attribute message.

Returns:

  • (String)


173
174
175
# File 'lib/altertable/lakehouse/models.rb', line 173

def message
  @message
end

Class Method Details

.from_h(h) ⇒ CancelQueryResponse

Parameters:

  • h (::Hash[String, untyped])

Returns:



180
181
182
# File 'lib/altertable/lakehouse/models.rb', line 180

def self.from_h(h)
  new(cancelled: h["cancelled"], message: h["message"])
end