Class: Textus::Application::Reads::Where

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

Instance Method Summary collapse

Constructor Details

#initialize(manifest:) ⇒ Where

Returns a new instance of Where.



5
6
7
# File 'lib/textus/application/reads/where.rb', line 5

def initialize(manifest:)
  @manifest = manifest
end

Instance Method Details

#call(key) ⇒ Object



9
10
11
12
13
14
# File 'lib/textus/application/reads/where.rb', line 9

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