Class: Servies::Backend
- Inherits:
-
Object
- Object
- Servies::Backend
- Defined in:
- lib/servies/backend.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #commands ⇒ Object
-
#initialize(context = {}) ⇒ Backend
constructor
A new instance of Backend.
- #interactors ⇒ Object
- #queries ⇒ Object
Constructor Details
#initialize(context = {}) ⇒ Backend
Returns a new instance of Backend.
7 8 9 |
# File 'lib/servies/backend.rb', line 7 def initialize(context = {}) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/servies/backend.rb', line 5 def context @context end |
Instance Method Details
#commands ⇒ Object
19 20 21 |
# File 'lib/servies/backend.rb', line 19 def commands OperationFinder.new("Commands", self, true) end |
#interactors ⇒ Object
11 12 13 |
# File 'lib/servies/backend.rb', line 11 def interactors OperationFinder.new("Interactors", self, false) end |
#queries ⇒ Object
15 16 17 |
# File 'lib/servies/backend.rb', line 15 def queries OperationFinder.new("Queries", self, true) end |