Class: Presto::Client::ModelVersions::V316::Lifespan
- Inherits:
-
String
- Object
- String
- Presto::Client::ModelVersions::V316::Lifespan
- Defined in:
- lib/presto/client/model_versions/316.rb
Instance Attribute Summary collapse
-
#group_id ⇒ Object
readonly
Returns the value of attribute group_id.
-
#grouped ⇒ Object
readonly
Returns the value of attribute grouped.
Instance Method Summary collapse
-
#initialize(str) ⇒ Lifespan
constructor
A new instance of Lifespan.
Constructor Details
#initialize(str) ⇒ Lifespan
Returns a new instance of Lifespan.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/presto/client/model_versions/316.rb', line 72 def initialize(str) super if str == "TaskWide" @grouped = false @group_id = 0 else # Group1 @grouped = true @group_id = str[5..-1].to_i end end |
Instance Attribute Details
#group_id ⇒ Object (readonly)
Returns the value of attribute group_id.
84 85 86 |
# File 'lib/presto/client/model_versions/316.rb', line 84 def group_id @group_id end |
#grouped ⇒ Object (readonly)
Returns the value of attribute grouped.
84 85 86 |
# File 'lib/presto/client/model_versions/316.rb', line 84 def grouped @grouped end |