Class: Delfos::Neo4j::CallStackQuery
- Inherits:
-
Object
- Object
- Delfos::Neo4j::CallStackQuery
- Defined in:
- lib/delfos/neo4j/call_stack_query.rb
Instance Method Summary collapse
-
#initialize(call_sites, execution_count) ⇒ CallStackQuery
constructor
A new instance of CallStackQuery.
- #params ⇒ Object
- #query ⇒ Object
Constructor Details
#initialize(call_sites, execution_count) ⇒ CallStackQuery
Returns a new instance of CallStackQuery.
5 6 7 8 9 |
# File 'lib/delfos/neo4j/call_stack_query.rb', line 5 def initialize(call_sites, execution_count) @call_sites = call_sites @execution_count = execution_count end |
Instance Method Details
#params ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/delfos/neo4j/call_stack_query.rb', line 17 def params params = {} map_call_sites do |c, i| params.merge!(call_site_params(c, i)) end params end |
#query ⇒ Object
11 12 13 14 15 |
# File 'lib/delfos/neo4j/call_stack_query.rb', line 11 def query map_call_sites do |c, i| call_site_query(c, i) end.join("\n") end |