Class: NxtSchema::Registry::Proxy
- Inherits:
-
Object
- Object
- NxtSchema::Registry::Proxy
- Defined in:
- lib/nxt_schema/registry/proxy.rb
Instance Attribute Summary collapse
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
- #apply(key, input) ⇒ Object
- #apply!(key, input) ⇒ Object
-
#initialize(namespace) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(namespace) ⇒ Proxy
Returns a new instance of Proxy.
4 5 6 |
# File 'lib/nxt_schema/registry/proxy.rb', line 4 def initialize(namespace) @registry = ::NxtRegistry::Registry.new(namespace, call: false) end |
Instance Attribute Details
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
8 9 10 |
# File 'lib/nxt_schema/registry/proxy.rb', line 8 def registry @registry end |
Instance Method Details
#apply(key, input) ⇒ Object
12 13 14 |
# File 'lib/nxt_schema/registry/proxy.rb', line 12 def apply(key, input) resolve!(key).apply(input: input) end |
#apply!(key, input) ⇒ Object
16 17 18 |
# File 'lib/nxt_schema/registry/proxy.rb', line 16 def apply!(key, input) resolve!(key).apply!(input: input) end |