Class: NxtSchema::Registry::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/nxt_schema/registry/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#registryObject (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