Class: Altertable::Lakehouse::Models::TaskResponse
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#task_id ⇒ Object
readonly
Returns the value of attribute task_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(task_id:, status:) ⇒ TaskResponse
constructor
A new instance of TaskResponse.
Methods inherited from Request
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
#status ⇒ Object (readonly)
Returns the value of attribute status.
44 45 46 |
# File 'lib/altertable/lakehouse/models.rb', line 44 def status @status end |
#task_id ⇒ Object (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 |