Class: BroadcastEvent::RenderHelpers::Render
- Inherits:
-
Object
- Object
- BroadcastEvent::RenderHelpers::Render
- Defined in:
- app/models/broadcast_event/render_helpers.rb
Overview
Controls our render.
Class Method Summary collapse
Class Method Details
.to_hash(event) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/models/broadcast_event/render_helpers.rb', line 5 def self.to_hash(event) { uuid: event.uuid, event_type: event.event_type, occured_at: event.created_at, user_identifier: event.user_identifier, subjects: event.subjects, metadata: event. } end |