Class: GraphQL::Stitching::TypeResolver::ObjectArgumentValue Private
- Inherits:
-
ArgumentValue
- Object
- ArgumentValue
- GraphQL::Stitching::TypeResolver::ObjectArgumentValue
- Defined in:
- lib/graphql/stitching/type_resolver/arguments.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
An object input value
Instance Attribute Summary
Attributes inherited from ArgumentValue
Instance Method Summary collapse
- #build(origin_obj) ⇒ Object private
- #key? ⇒ Boolean private
- #print ⇒ Object private
- #verify_key(arg, key) ⇒ Object private
Methods inherited from ArgumentValue
Constructor Details
This class inherits a constructor from GraphQL::Stitching::TypeResolver::ArgumentValue
Instance Method Details
#build(origin_obj) ⇒ Object
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.
109 110 111 112 113 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 109 def build(origin_obj) value.each_with_object({}) do |arg, memo| memo[arg.name] = arg.build(origin_obj) end end |
#key? ⇒ Boolean
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.
101 102 103 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 101 def key? value.any?(&:key?) end |
#print ⇒ Object
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.
115 116 117 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 115 def print "{#{value.map(&:print).join(", ")}}" end |
#verify_key(arg, key) ⇒ Object
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.
105 106 107 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 105 def verify_key(arg, key) value.each { _1.verify_key(key) } end |