Class: Altertable::Lakehouse::Models::AppendResponse
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#ok ⇒ Object
readonly
Returns the value of attribute ok.
-
#task_id ⇒ Object
readonly
Returns the value of attribute task_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ok:, error_code: nil, error_message: nil, task_id: nil) ⇒ AppendResponse
constructor
A new instance of AppendResponse.
Methods inherited from Request
Constructor Details
#initialize(ok:, error_code: nil, error_message: nil, task_id: nil) ⇒ AppendResponse
Returns a new instance of AppendResponse.
26 27 28 29 30 31 |
# File 'lib/altertable/lakehouse/models.rb', line 26 def initialize(ok:, error_code: nil, error_message: nil, task_id: nil) @ok = ok @error_code = error_code @error_message = @task_id = task_id end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
24 25 26 |
# File 'lib/altertable/lakehouse/models.rb', line 24 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
24 25 26 |
# File 'lib/altertable/lakehouse/models.rb', line 24 def @error_message end |
#ok ⇒ Object (readonly)
Returns the value of attribute ok.
24 25 26 |
# File 'lib/altertable/lakehouse/models.rb', line 24 def ok @ok end |
#task_id ⇒ Object (readonly)
Returns the value of attribute task_id.
24 25 26 |
# File 'lib/altertable/lakehouse/models.rb', line 24 def task_id @task_id end |
Class Method Details
.from_h(h) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/altertable/lakehouse/models.rb', line 33 def self.from_h(h) new( ok: h["ok"], error_code: h["error_code"], error_message: h["error_message"], task_id: h["task_id"] ) end |