Class: GraphQL::RootCallArgumentDefiner
- Inherits:
-
Object
- Object
- GraphQL::RootCallArgumentDefiner
- Defined in:
- lib/graphql/root_call_argument_definer.rb
Overview
Enables the GraphQL::RootCall.argument API, used internall by GraphQL
Constant Summary collapse
- ARGUMENT_TYPES =
[:string, :object, :number]
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(call_class) ⇒ RootCallArgumentDefiner
constructor
A new instance of RootCallArgumentDefiner.
- #none ⇒ Object
Constructor Details
#initialize(call_class) ⇒ RootCallArgumentDefiner
Returns a new instance of RootCallArgumentDefiner.
7 8 9 10 |
# File 'lib/graphql/root_call_argument_definer.rb', line 7 def initialize(call_class) @call_class = call_class @arguments = [] end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/graphql/root_call_argument_definer.rb', line 5 def arguments @arguments end |
Instance Method Details
#none ⇒ Object
12 13 14 |
# File 'lib/graphql/root_call_argument_definer.rb', line 12 def none @arguments = [] end |