Class: AQL::Node::Literal::Composed::Document

Inherits:
AQL::Node::Literal::Composed show all
Defined in:
lib/aql/node/literal/composed/document.rb

Overview

Literal document

Defined Under Namespace

Classes: Attribute

Constant Summary

Constants inherited from AQL::Node::Literal

REGISTRY

Constants inherited from AQL::Node

NULL

Class Method Summary collapse

Methods inherited from AQL::Node::Literal

build

Methods inherited from AQL::Node

#aql, #visit

Class Method Details

.construct(hash) ⇒ Node::Literal::Document

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Construct node from primitive

Parameters:

  • hash (Hash)

Returns:

  • (Node::Literal::Document)


17
18
19
20
21
22
# File 'lib/aql/node/literal/composed/document.rb', line 17

def self.construct(hash)
  attributes = hash.map do |key, value|
    Attribute.new(Literal.build(key), Literal.build(value))
  end
  new(attributes)
end