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

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(cancelled:, message:) ⇒ CancelQueryResponse

Returns a new instance of CancelQueryResponse.



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

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

Instance Attribute Details

#cancelledObject (readonly)

Returns the value of attribute cancelled.



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

def cancelled
  @cancelled
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

Class Method Details

.from_h(h) ⇒ Object



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

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