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