Class: ServiceProvider::MethodDecorators::Provides
- Inherits:
-
MethodDecorator
- Object
- MethodDecorator
- ServiceProvider::MethodDecorators::Provides
- Defined in:
- lib/service_provider/method_decorators/provides.rb
Instance Attribute Summary collapse
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Instance Method Summary collapse
-
#initialize(service_name = nil) ⇒ Provides
constructor
A new instance of Provides.
Constructor Details
#initialize(service_name = nil) ⇒ Provides
Returns a new instance of Provides.
6 7 8 |
# File 'lib/service_provider/method_decorators/provides.rb', line 6 def initialize(service_name = nil) @service_name = service_name end |
Instance Attribute Details
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
4 5 6 |
# File 'lib/service_provider/method_decorators/provides.rb', line 4 def service_name @service_name end |