Class: Hydramata::Services

Inherits:
Object
  • Object
show all
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.

See Also:

  • Runner

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



18
19
20
# File 'lib/hydramata/services.rb', line 18

def context
  @context
end