Class: Kiyohime::Containers::ServiceRegistration
- Inherits:
-
Object
- Object
- Kiyohime::Containers::ServiceRegistration
- 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
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(service, *methods) ⇒ ServiceRegistration
constructor
A new instance of ServiceRegistration.
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
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
6 7 8 |
# File 'lib/kiyohime/containers/service_registration.rb', line 6 def methods @methods end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
6 7 8 |
# File 'lib/kiyohime/containers/service_registration.rb', line 6 def service @service end |