Class: Textus::Application::Read::Published::Impl

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

Instance Method Summary collapse

Constructor Details

#initialize(caps:) ⇒ Impl

Returns a new instance of Impl.



10
11
12
# File 'lib/textus/application/read/published.rb', line 10

def initialize(caps:)
  @manifest = caps.manifest
end

Instance Method Details

#callObject



14
15
16
17
18
# File 'lib/textus/application/read/published.rb', line 14

def call
  @manifest.data.entries.reject { |e| e.publish_to.empty? }.map do |e|
    { "key" => e.key, "publish_to" => e.publish_to }
  end
end