Class: ActiveAgent::Service
- Inherits:
-
Object
- Object
- ActiveAgent::Service
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/active_agent/service.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
-
.build(configurator:, name:, service: nil, **service_config) ⇒ Object
:nodoc:.
- .configure(service_name, configurations) ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/active_agent/service.rb', line 7 def name @name end |
Class Method Details
.build(configurator:, name:, service: nil, **service_config) ⇒ Object
:nodoc:
14 15 16 17 18 |
# File 'lib/active_agent/service.rb', line 14 def build(configurator:, name:, service: nil, **service_config) # :nodoc: new(**service_config).tap do |service_instance| service_instance.name = name end end |
.configure(service_name, configurations) ⇒ Object
10 11 12 |
# File 'lib/active_agent/service.rb', line 10 def configure(service_name, configurations) Configurator.build(service_name, configurations) end |
Instance Method Details
#generate ⇒ Object
21 22 23 |
# File 'lib/active_agent/service.rb', line 21 def generate(...) raise NotImplementedError end |