Class: GraphQLSchema::InputValue
- Inherits:
-
Object
- Object
- GraphQLSchema::InputValue
- Includes:
- NamedHash
- Defined in:
- lib/graphql_schema.rb
Instance Method Summary collapse
- #default_value ⇒ Object
-
#initialize(arg_hash) ⇒ InputValue
constructor
A new instance of InputValue.
- #type ⇒ Object
Methods included from NamedHash
#camelize_name, #classify_name, #description, #name, #to_h, #upcase_name
Constructor Details
#initialize(arg_hash) ⇒ InputValue
Returns a new instance of InputValue.
76 77 78 |
# File 'lib/graphql_schema.rb', line 76 def initialize(arg_hash) @hash = arg_hash end |
Instance Method Details
#default_value ⇒ Object
84 85 86 |
# File 'lib/graphql_schema.rb', line 84 def default_value @default_value ||= @hash.fetch('defaultValue') end |
#type ⇒ Object
80 81 82 |
# File 'lib/graphql_schema.rb', line 80 def type @type ||= TypeDeclaration.new(@hash.fetch('type')) end |