Class: Path::Reporting::Trigger
- Inherits:
-
Object
- Object
- Path::Reporting::Trigger
- Defined in:
- lib/path/reporting/types/trigger.rb
Overview
The trigger or cause of reporting events
Constant Summary collapse
- INTERACTION =
Interaction: When a direct intentional user action is the cause of this event that is not a simple navigation. E.g. Submitted form or changed password
"Interaction"
- PAGE_VIEW =
Note:
Because of usage limits, we do not want to record page views as a separate action, this is only for indirect consequences that result in a change in something either for the user or for our systems
Page view: When the event was an indirect result of viewing something. E.g. auto-assigning a provider or appointment because the user has an existing provider already
"Page view"
- AUTOMATION =
Automation: Some automation or tool was the cause of this event
"Automation"
Class Method Summary collapse
-
.valid?(maybe_trigger) ⇒ Boolean
Check if a given item is a valid Trigger.
Class Method Details
.valid?(maybe_trigger) ⇒ Boolean
Check if a given item is a valid Trigger
34 35 36 |
# File 'lib/path/reporting/types/trigger.rb', line 34 def valid?(maybe_trigger) triggers.include? maybe_trigger end |