Class: Neo4j::Core::CypherSession::Responses::Embedded

Inherits:
Base
  • Object
show all
Defined in:
lib/neo4j/core/cypher_session/responses/embedded.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#each, #wrap_by_level

Constructor Details

#initialize(execution_results, options = {}) ⇒ Embedded

Returns a new instance of Embedded.



10
11
12
13
14
15
16
17
18
# File 'lib/neo4j/core/cypher_session/responses/embedded.rb', line 10

def initialize(execution_results, options = {})
  # validate_response!(execution_results)

  @wrap_level = options[:wrap_level] || Neo4j::Core::Config.wrapping_level

  @results = execution_results.map do |execution_result|
    result_from_execution_result(execution_result)
  end
end

Instance Attribute Details

#request_dataObject (readonly)

Returns the value of attribute request_data.



8
9
10
# File 'lib/neo4j/core/cypher_session/responses/embedded.rb', line 8

def request_data
  @request_data
end

#resultsObject (readonly)

Returns the value of attribute results.



8
9
10
# File 'lib/neo4j/core/cypher_session/responses/embedded.rb', line 8

def results
  @results
end