Class: Flexite::ServiceFactory

Inherits:
BaseFactory show all
Defined in:
app/factories/flexite/service_factory.rb

Instance Method Summary collapse

Methods inherited from BaseFactory

#get

Constructor Details

#initializeServiceFactory

Returns a new instance of ServiceFactory.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/factories/flexite/service_factory.rb', line 5

def initialize
  @store = {
    arr_entry_update: 'Entry::ArrayUpdateService',
    entry_update: 'Entry::UpdateService',
    config_create: 'Config::CreateService',
    entry_create: 'Entry::CreateService',
    arr_entry_create:  'Entry::ArrayCreateService',
    entry_destroy: 'Entry::DestroyService',
    arr_entry_destroy: 'Entry::DestroyService',
    destroy_array_entry: 'Entry::DestroyArrayEntryService',
    update_config: 'Config::UpdateService',
    apply_diff: 'Diff::ApplyService',
    push_diff: 'Diff::PushService',
    get_diff: 'Diff::GetService',
    show_diff: 'Diff::ShowService'
  }
end