Class: ServiceProvider::MethodDecorators::Provides

Inherits:
MethodDecorator
  • Object
show all
Defined in:
lib/service_provider/method_decorators/provides.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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