Class: Types::Ci::Inputs::ValueType
- Inherits:
-
BaseScalar
- Object
- GraphQL::Schema::Scalar
- BaseScalar
- Types::Ci::Inputs::ValueType
- Defined in:
- app/graphql/types/ci/inputs/value_type.rb
Class Method Summary collapse
Class Method Details
.coerce_input(value, _ctx) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/graphql/types/ci/inputs/value_type.rb', line 13 def self.coerce_input(value, _ctx) case value when String, Array, Numeric, TrueClass, FalseClass, NilClass value else raise GraphQL::CoercionError, 'Invalid CI input value' end end |