Class: GraphQL::RootCallArgumentDefiner

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/root_call_argument_definer.rb

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.



6
7
8
9
# File 'lib/graphql/root_call_argument_definer.rb', line 6

def initialize(call_class)
  @call_class = call_class
  @arguments = []
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



4
5
6
# File 'lib/graphql/root_call_argument_definer.rb', line 4

def arguments
  @arguments
end

Instance Method Details

#noneObject



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

def none
  @arguments = []
end