Class: Lyra::EventAnalyzer
- Inherits:
-
Object
- Object
- Lyra::EventAnalyzer
- Defined in:
- lib/lyra/event_analyzer.rb
Overview
Analyzes collections of events for patterns and metrics
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#analyze ⇒ Object
Analyze events and return comprehensive metrics.
-
#initialize(events) ⇒ EventAnalyzer
constructor
A new instance of EventAnalyzer.
Constructor Details
#initialize(events) ⇒ EventAnalyzer
Returns a new instance of EventAnalyzer.
6 7 8 |
# File 'lib/lyra/event_analyzer.rb', line 6 def initialize(events) @events = events end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
4 5 6 |
# File 'lib/lyra/event_analyzer.rb', line 4 def events @events end |
Instance Method Details
#analyze ⇒ Object
Analyze events and return comprehensive metrics
11 12 13 14 15 16 17 18 |
# File 'lib/lyra/event_analyzer.rb', line 11 def analyze { timeline: calculate_timeline, operations: calculate_operations, metrics: calculate_metrics, privacy: analyze_privacy } end |