Module: SkyDB::Query::Ast::SelectionGroupSyntaxNode

Defined in:
lib/skydb/query/ast/selection_group_syntax_node.rb

Instance Method Summary collapse

Instance Method Details

#generateObject

Generates the SelectionGroup object from the node.



6
7
8
9
10
11
12
# File 'lib/skydb/query/ast/selection_group_syntax_node.rb', line 6

def generate
  group = SkyDB::Query::SelectionGroup.new(
    :expression => (respond_to?('expression') ? expression.text_value : text_value)
  )
  group.alias_name = alias_name.text_value if respond_to?('alias_name')
  return group
end