Class: Presto::Client::Models::StageId

Inherits:
String
  • Object
show all
Defined in:
lib/presto/client/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



59
60
61
# File 'lib/presto/client/models.rb', line 59

def id
  @id
end

#query_idObject (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