Class: Textus::Application::Reads::Published
- Inherits:
-
Object
- Object
- Textus::Application::Reads::Published
- Defined in:
- lib/textus/application/reads/published.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(manifest:) ⇒ Published
constructor
A new instance of Published.
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
#call ⇒ Object
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 |