Class: GraphQL::StaticValidation::NotSingleSubscriptionError
- Inherits:
-
StaticValidation::Error
- Object
- StaticValidation::Error
- GraphQL::StaticValidation::NotSingleSubscriptionError
- Defined in:
- lib/graphql/static_validation/rules/not_single_subscription_error.rb
Instance Method Summary collapse
-
#code ⇒ Object
: -> String.
-
#initialize(message, path: nil, nodes: []) ⇒ NotSingleSubscriptionError
constructor
: (String message, ?path: Array[String | Integer]?, ?nodes: GraphQL::Language::Nodes::AbstractNode | Array) -> void.
-
#to_h ⇒ Object
A hash representation of this Message : -> Hash[String, untyped].
Constructor Details
#initialize(message, path: nil, nodes: []) ⇒ NotSingleSubscriptionError
: (String message, ?path: Array[String | Integer]?, ?nodes: GraphQL::Language::Nodes::AbstractNode | Array) -> void
8 9 10 |
# File 'lib/graphql/static_validation/rules/not_single_subscription_error.rb', line 8 def initialize(, path: nil, nodes: []) super(, path: path, nodes: nodes) end |
Instance Method Details
#code ⇒ Object
: -> String
25 26 27 |
# File 'lib/graphql/static_validation/rules/not_single_subscription_error.rb', line 25 def code "notSingleSubscription" end |
#to_h ⇒ Object
A hash representation of this Message : -> Hash[String, untyped]
14 15 16 17 18 19 20 21 22 |
# File 'lib/graphql/static_validation/rules/not_single_subscription_error.rb', line 14 def to_h extensions = { "code" => code, } super.merge({ "extensions" => extensions }) end |