Class: Events::RenderService

Inherits:
BaseRenderer show all
Defined in:
app/services/events/render_service.rb

Instance Attribute Summary

Attributes inherited from BaseRenderer

#current_user

Instance Method Summary collapse

Methods inherited from BaseRenderer

#initialize

Constructor Details

This class inherits a constructor from BaseRenderer

Instance Method Details

#execute(events, atom_request: false) ⇒ Object


5
6
7
8
9
# File 'app/services/events/render_service.rb', line 5

def execute(events, atom_request: false)
  notes = events.map(&:note).compact

  render_notes(notes, atom_request)
end