Class: Dsu::Views::EntryGroup::List

Inherits:
Object
  • Object
show all
Defined in:
lib/dsu/views/entry_group/list.rb

Instance Method Summary collapse

Constructor Details

#initialize(presenter:) ⇒ List

Returns a new instance of List.



7
8
9
# File 'lib/dsu/views/entry_group/list.rb', line 7

def initialize(presenter:)
  @presenter = presenter
end

Instance Method Details

#renderObject



11
12
13
14
15
# File 'lib/dsu/views/entry_group/list.rb', line 11

def render
  return presenter.display_nothing_to_list_message if presenter.nothing_to_list?

  presenter.render
end