Class: HPrevalence::PrevalenceService

Inherits:
Object
  • Object
show all
Defined in:
lib/hprevalence.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#engineObject (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

#systemObject



93
94
95
# File 'lib/hprevalence.rb', line 93

def system
  @engine.system
end