Class: BroadcastEvent::RenderHelpers::Render

Inherits:
Object
  • Object
show all
Defined in:
app/models/broadcast_event/render_helpers.rb

Overview

Controls our render.

Class Method Summary collapse

Class Method Details

.to_hash(event) ⇒ Object


4
5
6
7
8
9
10
11
12
13
# File 'app/models/broadcast_event/render_helpers.rb', line 4

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