Class: GraphQL::RootCallArgument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



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

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.



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

def any_number
  @any_number
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end