Class: Kiyohime::Containers::ServiceRegistration

Inherits:
Object
  • Object
show all
Defined in:
lib/kiyohime/containers/service_registration.rb

Overview

Services can be registered via this container. It is principally used for services which add bespoke methods to the registry

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service, *methods) ⇒ ServiceRegistration

Returns a new instance of ServiceRegistration.



8
9
10
11
# File 'lib/kiyohime/containers/service_registration.rb', line 8

def initialize(service, *methods)
  @service = service
  @methods = methods
end

Instance Attribute Details

#methodsObject (readonly)

Returns the value of attribute methods.



6
7
8
# File 'lib/kiyohime/containers/service_registration.rb', line 6

def methods
  @methods
end

#serviceObject (readonly)

Returns the value of attribute service.



6
7
8
# File 'lib/kiyohime/containers/service_registration.rb', line 6

def service
  @service
end