Class: HPrevalence::PrevalenceService
- Inherits:
-
Object
- Object
- HPrevalence::PrevalenceService
- Defined in:
- lib/hprevalence.rb
Instance Attribute Summary collapse
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
85 86 87 |
# File 'lib/hprevalence.rb', line 85 def engine @engine end |
Class Method Details
.create_service(snapshot_interval = 60 * 60 * 1000, &engine_init) ⇒ Object
87 88 89 90 91 |
# File 'lib/hprevalence.rb', line 87 def self.create_service( snapshot_interval = 60 * 60 * 1000, &engine_init ) engine = engine_init.call raise 'Engine not created' if engine.nil? PrevalenceService.new( engine, snapshot_interval ) end |
Instance Method Details
#system ⇒ Object
93 94 95 |
# File 'lib/hprevalence.rb', line 93 def system @engine.system end |