Class: GraphQL::RootCallArgument

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

Overview

Created by GraphQL::RootCall.argument, used internally by GraphQL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, name:, any_number: false) ⇒ RootCallArgument

Returns a new instance of RootCallArgument.



4
5
6
7
8
# File 'lib/graphql/root_call_argument.rb', line 4

def initialize(type:, name:, any_number: false)
  @type = type
  @name = name
  @any_number = any_number
end

Instance Attribute Details

#any_numberObject (readonly)

Returns the value of attribute any_number.



3
4
5
# File 'lib/graphql/root_call_argument.rb', line 3

def any_number
  @any_number
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/graphql/root_call_argument.rb', line 3

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/graphql/root_call_argument.rb', line 3

def type
  @type
end