Class: GraphQL::RootCallArgumentDefiner

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

Instance Method Summary collapse

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

#argumentsObject (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

#noneObject



12
13
14
# File 'lib/graphql/root_call_argument_definer.rb', line 12

def none
  @arguments = []
end