Class: GraphQL::Execution::InputValues::DeferredCoercion
- Inherits:
-
Object
- Object
- GraphQL::Execution::InputValues::DeferredCoercion
- Defined in:
- lib/graphql/execution/input_values.rb
Overview
Stands in for a scalar value whose validate_non_null_input accepted it without returning a coerced value.
argument_values calls coerce_input when it finds one of these.
Instance Method Summary collapse
- #coerce(context) ⇒ Object
-
#initialize(type, value) ⇒ DeferredCoercion
constructor
:nodoc:.
Constructor Details
#initialize(type, value) ⇒ DeferredCoercion
:nodoc:
186 187 188 189 |
# File 'lib/graphql/execution/input_values.rb', line 186 def initialize(type, value) @type = type @value = value end |
Instance Method Details
#coerce(context) ⇒ Object
191 192 193 |
# File 'lib/graphql/execution/input_values.rb', line 191 def coerce(context) @type.coerce_input(@value, context) end |