Class: Presto::Client::Models::StageId
- Inherits:
-
String
- Object
- String
- Presto::Client::Models::StageId
- Defined in:
- lib/presto/client/models.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.
Instance Method Summary collapse
-
#initialize(str) ⇒ StageId
constructor
A new instance of StageId.
Constructor Details
#initialize(str) ⇒ StageId
Returns a new instance of StageId.
52 53 54 55 56 57 |
# File 'lib/presto/client/models.rb', line 52 def initialize(str) super splitted = split('.', 2) @query_id = QueryId.new(splitted[0]) @id = QueryId.new(splitted[1]) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
59 60 61 |
# File 'lib/presto/client/models.rb', line 59 def id @id end |
#query_id ⇒ Object (readonly)
Returns the value of attribute query_id.
59 60 61 |
# File 'lib/presto/client/models.rb', line 59 def query_id @query_id end |