Class: Archsight::Query::AST::SubqueryTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/archsight/query/ast.rb

Overview

Relation target: sub-query result Used with -> $(expr) to match against query results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query) ⇒ SubqueryTarget

Returns a new instance of SubqueryTarget.



244
245
246
# File 'lib/archsight/query/ast.rb', line 244

def initialize(query)
  @query = query # QueryNode - the inner sub-query to evaluate
end

Instance Attribute Details

#queryObject (readonly)

Returns the value of attribute query.



242
243
244
# File 'lib/archsight/query/ast.rb', line 242

def query
  @query
end