Class: Textus::Application::Read::Where::Impl

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/application/read/where.rb

Instance Method Summary collapse

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