Class: Presto::Client::ModelVersions::V0_173::TaskId
- Inherits:
-
String
- Object
- String
- Presto::Client::ModelVersions::V0_173::TaskId
- Defined in:
- lib/presto/client/model_versions/0.173.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#query_id ⇒ Object
readonly
Returns the value of attribute query_id.
-
#stage_id ⇒ Object
readonly
Returns the value of attribute stage_id.
Instance Method Summary collapse
-
#initialize(str) ⇒ TaskId
constructor
A new instance of TaskId.
Constructor Details
#initialize(str) ⇒ TaskId
Returns a new instance of TaskId.
60 61 62 63 64 65 66 |
# File 'lib/presto/client/model_versions/0.173.rb', line 60 def initialize(str) super splitted = split('.', 3) @stage_id = StageId.new("#{splitted[0]}.#{splitted[1]}") @query_id = @stage_id.query_id @id = splitted[2] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
68 69 70 |
# File 'lib/presto/client/model_versions/0.173.rb', line 68 def id @id end |
#query_id ⇒ Object (readonly)
Returns the value of attribute query_id.
68 69 70 |
# File 'lib/presto/client/model_versions/0.173.rb', line 68 def query_id @query_id end |
#stage_id ⇒ Object (readonly)
Returns the value of attribute stage_id.
68 69 70 |
# File 'lib/presto/client/model_versions/0.173.rb', line 68 def stage_id @stage_id end |