Class: PrestoLegacy::Client::Models::StageId
- Inherits:
-
String
- Object
- String
- PrestoLegacy::Client::Models::StageId
- Defined in:
- lib/presto_legacy/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.
49 50 51 52 53 54 |
# File 'lib/presto_legacy/client/models.rb', line 49 def initialize(str) super splitted = split('.', 2) @query_id = splitted[0] @id = splitted[1] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
56 57 58 |
# File 'lib/presto_legacy/client/models.rb', line 56 def id @id end |
#query_id ⇒ Object (readonly)
Returns the value of attribute query_id.
56 57 58 |
# File 'lib/presto_legacy/client/models.rb', line 56 def query_id @query_id end |