Class: ActiveAgent::Service

Inherits:
Object
  • Object
show all
Extended by:
ActiveSupport::Autoload
Defined in:
lib/active_agent/service.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

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

#generateObject

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/active_agent/service.rb', line 21

def generate(...)
  raise NotImplementedError
end