Class: GraphQL::InputValue

Inherits:
Object
  • Object
show all
Defined in:
lib/graph_ql/types/input_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, description: nil, default_value: nil, name: nil) ⇒ InputValue

Returns a new instance of InputValue.



4
5
6
7
8
9
# File 'lib/graph_ql/types/input_value.rb', line 4

def initialize(type:, description: nil, default_value: nil, name: nil)
  @type = type
  @description = description,
  @default_value = default_value
  @name = name
end

Instance Attribute Details

#default_valueObject (readonly)

Returns the value of attribute default_value.



2
3
4
# File 'lib/graph_ql/types/input_value.rb', line 2

def default_value
  @default_value
end

#descriptionObject (readonly)

Returns the value of attribute description.



2
3
4
# File 'lib/graph_ql/types/input_value.rb', line 2

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/graph_ql/types/input_value.rb', line 3

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'lib/graph_ql/types/input_value.rb', line 2

def type
  @type
end