Class: GraphQL::RootCallArgument
- Inherits:
-
Object
- Object
- GraphQL::RootCallArgument
- Defined in:
- lib/graphql/root_call_argument.rb
Overview
Created by GraphQL::RootCall.argument, used internally by GraphQL
Instance Attribute Summary collapse
-
#any_number ⇒ Object
readonly
Returns the value of attribute any_number.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, name:, any_number: false) ⇒ RootCallArgument
constructor
A new instance of RootCallArgument.
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_number ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/graphql/root_call_argument.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/graphql/root_call_argument.rb', line 3 def type @type end |