Class: Altertable::Lakehouse::Models::TaskResponse

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(task_id:, status:) ⇒ TaskResponse

Returns a new instance of TaskResponse.



46
47
48
49
# File 'lib/altertable/lakehouse/models.rb', line 46

def initialize(task_id:, status:)
  @task_id = task_id
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



44
45
46
# File 'lib/altertable/lakehouse/models.rb', line 44

def status
  @status
end

#task_idObject (readonly)

Returns the value of attribute task_id.



44
45
46
# File 'lib/altertable/lakehouse/models.rb', line 44

def task_id
  @task_id
end

Class Method Details

.from_h(h) ⇒ Object



51
52
53
# File 'lib/altertable/lakehouse/models.rb', line 51

def self.from_h(h)
  new(task_id: h["task_id"], status: h["status"])
end