Module: Powcloud::Insurance::Agent

Includes:
AgentCommunications, AgentScheduler, Logger
Defined in:
lib/powcloud/insurance/agent.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary

Attributes included from Logger

#logger

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AgentScheduler

#after, #every, #scheduler, #start_scheduler

Methods included from AgentCommunications

#connect_broadcast, #connect_direct, #start_communications

Methods included from Logger

#init_child_logger, #init_logger, #log_exception, outputters, outputters=

Class Method Details

.included(base) ⇒ Object



13
14
15
# File 'lib/powcloud/insurance/agent.rb', line 13

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#start_no_blockObject

Non-blocking agent initialization. Calls started() callback.



23
24
25
26
27
# File 'lib/powcloud/insurance/agent.rb', line 23

def start_no_block
  start_communications
  start_scheduler
  started
end

#startedObject



29
# File 'lib/powcloud/insurance/agent.rb', line 29

def started; end