Class: Servies::Backend

Inherits:
Object
  • Object
show all
Defined in:
lib/servies/backend.rb

Direct Known Subclasses

Backend

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/servies/backend.rb', line 5

def context
  @context
end

Instance Method Details

#commandsObject



19
20
21
# File 'lib/servies/backend.rb', line 19

def commands
  OperationFinder.new("Commands", self, true)
end

#interactorsObject



11
12
13
# File 'lib/servies/backend.rb', line 11

def interactors
  OperationFinder.new("Interactors", self, false)
end

#queriesObject



15
16
17
# File 'lib/servies/backend.rb', line 15

def queries
  OperationFinder.new("Queries", self, true)
end