Class: Textus::Read::Where

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

Instance Method Summary collapse

Constructor Details

#initialize(container:, call: nil) ⇒ Where

rubocop:disable Lint/UnusedMethodArgument



4
5
6
# File 'lib/textus/read/where.rb', line 4

def initialize(container:, call: nil) # rubocop:disable Lint/UnusedMethodArgument
  @manifest = container.manifest
end

Instance Method Details

#call(key) ⇒ Object



8
9
10
11
12
13
# File 'lib/textus/read/where.rb', line 8

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