Class: Textus::Application::Reads::Published

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

Instance Method Summary collapse

Constructor Details

#initialize(manifest:) ⇒ Published

Returns a new instance of Published.



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

def initialize(manifest:)
  @manifest = manifest
end

Instance Method Details

#callObject



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

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