Class: GraphQL::Stitching::TypeResolver::ArgumentValue Private

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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.

Returns:

  • (Boolean)


77
78
79
# File 'lib/graphql/stitching/type_resolver/arguments.rb', line 77

def key?
  false
end

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