Class: K3CloudWebapiSdk::Model::QueryTaskParam
- Inherits:
-
Object
- Object
- K3CloudWebapiSdk::Model::QueryTaskParam
- Defined in:
- lib/k3cloud_webapi_sdk/model/query_param.rb
Instance Attribute Summary collapse
-
#cancelled ⇒ Object
Returns the value of attribute cancelled.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
Instance Method Summary collapse
-
#initialize(task_id = '', is_cancelled = false) ⇒ QueryTaskParam
constructor
A new instance of QueryTaskParam.
- #to_h ⇒ Object
Constructor Details
#initialize(task_id = '', is_cancelled = false) ⇒ QueryTaskParam
6 7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/query_param.rb', line 6 def initialize(task_id = '', is_cancelled = false) @task_id = task_id @cancelled = is_cancelled end |
Instance Attribute Details
#cancelled ⇒ Object
Returns the value of attribute cancelled.
4 5 6 |
# File 'lib/k3cloud_webapi_sdk/model/query_param.rb', line 4 def cancelled @cancelled end |
#task_id ⇒ Object
Returns the value of attribute task_id.
4 5 6 |
# File 'lib/k3cloud_webapi_sdk/model/query_param.rb', line 4 def task_id @task_id end |
Instance Method Details
#to_h ⇒ Object
11 12 13 14 15 16 |
# File 'lib/k3cloud_webapi_sdk/model/query_param.rb', line 11 def to_h { task_id: @task_id, cancelled: @cancelled } end |