Class: Textus::Application::Read::Where::Impl
- Inherits:
-
Object
- Object
- Textus::Application::Read::Where::Impl
- Defined in:
- lib/textus/application/read/where.rb
Instance Method Summary collapse
- #call(key) ⇒ Object
-
#initialize(caps:) ⇒ Impl
constructor
A new instance of Impl.
Constructor Details
#initialize(caps:) ⇒ Impl
Returns a new instance of Impl.
10 11 12 |
# File 'lib/textus/application/read/where.rb', line 10 def initialize(caps:) @manifest = caps.manifest end |
Instance Method Details
#call(key) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/textus/application/read/where.rb', line 14 def call(key) res = @manifest.resolver.resolve(key) mentry = res.entry path = res.path { "protocol" => PROTOCOL, "key" => key, "zone" => mentry.zone, "owner" => mentry.owner, "path" => path } end |