Class: AQL::Node::Literal::Composed::Document
- Inherits:
-
AQL::Node::Literal::Composed
- Object
- AQL::Node
- AQL::Node::Literal
- AQL::Node::Literal::Composed
- AQL::Node::Literal::Composed::Document
- 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
Constants inherited from AQL::Node
Class Method Summary collapse
-
.construct(hash) ⇒ Node::Literal::Document
private
Construct node from primitive.
Methods inherited from AQL::Node::Literal
Methods inherited from AQL::Node
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
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 |