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
10 11 12 13 14 15 |
# File 'lib/hq/graphql/inputs.rb', line 10 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
18 19 20 |
# File 'lib/hq/graphql/inputs.rb', line 18 def self.reset! @inputs = nil end |