Module: Sipity::Commands::EventLogCommands

Defined in:
app/repositories/sipity/commands/event_log_commands.rb

Overview

Commands

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_event!(entity:, user:, event_name:) ⇒ Object

Note:

This is both a module function and an instance function.

See Also:

  • underlying spec defines the behavior; Do not access

8
9
10
# File 'app/repositories/sipity/commands/event_log_commands.rb', line 8

def log_event!(entity:, user:, event_name:)
  Models::EventLog.create!(entity: entity, user: user, event_name: event_name)
end

Instance Method Details

#log_event!(entity:, user:, event_name:) ⇒ Object

Note:

This is both a module function and an instance function.

See Also:

  • underlying spec defines the behavior; Do not access

8
9
10
# File 'app/repositories/sipity/commands/event_log_commands.rb', line 8

def log_event!(entity:, user:, event_name:)
  Models::EventLog.create!(entity: entity, user: user, event_name: event_name)
end