Class: Hydramata::Services
- Inherits:
-
Object
- Object
- Hydramata::Services
- Defined in:
- lib/hydramata/services.rb
Overview
The Services class is a dumping ground for methods. These methods are exposed to an application’s context (i.e. a controller).
It is the application’s interface between the logic of the controller/ request handling and the construction of objects.
This class has been constructed such that other engines can inject behavior into Services using the ActiveSupport.on_load method.
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ Services
constructor
A new instance of Services.
Constructor Details
#initialize(context) ⇒ Services
Returns a new instance of Services.
15 16 17 |
# File 'lib/hydramata/services.rb', line 15 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
18 19 20 |
# File 'lib/hydramata/services.rb', line 18 def context @context end |