Module: HQ::GraphQL::Inputs
- Defined in:
- lib/hq/graphql/inputs.rb
Defined Under Namespace
Classes: Error
Class Method Summary collapse
- .[](key) ⇒ Object
-
.reset! ⇒ Object
Only being used in testing.
Class Method Details
.[](key) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/hq/graphql/inputs.rb', line 8 def self.[](key) @inputs ||= Hash.new do |hash, klass| hash[klass] = klass_for(klass) end @inputs[key] end |
.reset! ⇒ Object
Only being used in testing
16 17 18 |
# File 'lib/hq/graphql/inputs.rb', line 16 def self.reset! @inputs = nil end |