Class: GraphQL::Stitching::TypeResolver::ArgumentValue Private
- Inherits:
-
Object
- Object
- GraphQL::Stitching::TypeResolver::ArgumentValue
- 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 abstract argument input value
Direct Known Subclasses
EnumArgumentValue, KeyArgumentValue, LiteralArgumentValue, ObjectArgumentValue
Instance Attribute Summary collapse
- #value ⇒ Object readonly private
Instance Method Summary collapse
- #==(other) ⇒ Object private
- #build(origin_obj) ⇒ Object private
-
#initialize(value) ⇒ ArgumentValue
constructor
private
A new instance of ArgumentValue.
- #key? ⇒ Boolean private
- #print ⇒ Object private
- #verify_key(arg, key) ⇒ Object private
Constructor Details
#initialize(value) ⇒ ArgumentValue
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.
Returns a new instance of ArgumentValue.
73 74 75 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 73 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
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.
71 72 73 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 71 def value @value end |
Instance Method Details
#==(other) ⇒ 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.
85 86 87 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 85 def ==(other) self.class == other.class && value == other.value end |
#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.
89 90 91 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 89 def build(origin_obj) value 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.
77 78 79 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 77 def key? false 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.
93 94 95 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 93 def print value 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.
81 82 83 |
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 81 def verify_key(arg, key) nil end |