class GraphQLSchema::InputValue

Public Class Methods

new(arg_hash) click to toggle source
# File lib/graphql_schema.rb, line 100
def initialize(arg_hash)
  @hash = arg_hash
end

Public Instance Methods

default_value() click to toggle source
# File lib/graphql_schema.rb, line 108
def default_value
  @default_value ||= @hash.fetch('defaultValue')
end
type() click to toggle source
# File lib/graphql_schema.rb, line 104
def type
  @type ||= TypeDeclaration.new(@hash.fetch('type'))
end