servactory 1.4.7 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -33
- data/lib/servactory/base.rb +1 -1
- data/lib/servactory/context/callable.rb +5 -6
- data/lib/servactory/input_arguments/collection.rb +1 -1
- data/lib/servactory/input_arguments/dsl.rb +6 -5
- data/lib/servactory/input_arguments/input_argument.rb +6 -6
- data/lib/servactory/input_arguments/tools/check.rb +4 -5
- data/lib/servactory/input_arguments/workbench.rb +3 -5
- data/lib/servactory/internal_arguments/collection.rb +1 -1
- data/lib/servactory/internal_arguments/dsl.rb +6 -0
- data/lib/servactory/internal_arguments/workbench.rb +2 -1
- data/lib/servactory/{stage/methods.rb → make_methods/collection.rb} +4 -4
- data/lib/servactory/make_methods/dsl.rb +33 -0
- data/lib/servactory/{stage/method.rb → make_methods/make_method.rb} +4 -9
- data/lib/servactory/make_methods/workbench.rb +41 -0
- data/lib/servactory/output_arguments/collection.rb +1 -1
- data/lib/servactory/output_arguments/dsl.rb +6 -0
- data/lib/servactory/version.rb +2 -2
- metadata +6 -7
- data/lib/servactory/stage/dsl.rb +0 -29
- data/lib/servactory/stage/factory.rb +0 -15
- data/lib/servactory/stage/handyman.rb +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77f19d5b6971cbec1d9f9c5861d14cfe511d4bdcd7d4636349909d2fc66136cd
|
4
|
+
data.tar.gz: a0db50ba89379e4de2155b3b3d4b574bf0284aa23ef672071f1f0afa74ec5fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33720d025d61d2874b17181a5aa6d9f74ac060f1bb606da70495426c431afc1fb0e9d4ffdb8575a389a9d675fa0a900ef96a769df6653cc478d2df27176e894a
|
7
|
+
data.tar.gz: 7e2ec6b1c657b943154e2f41ca7b43fe45fb77bc172664811a48a6575e6459ae154759f800ce59d1b179f3ff760a0f8ebf6dd97f4a3eb67f78d094e9cf55870b
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ A set of tools for building reliable services of any complexity.
|
|
26
26
|
- [Must](#must)
|
27
27
|
- [Output attributes](#output-attributes)
|
28
28
|
- [Internal attributes](#internal-attributes)
|
29
|
-
- [
|
29
|
+
- [Make](#make)
|
30
30
|
- [Failures](#failures)
|
31
31
|
- [I18n](#i18n)
|
32
32
|
- [Testing](#testing)
|
@@ -102,7 +102,7 @@ end
|
|
102
102
|
|
103
103
|
```ruby
|
104
104
|
class MinimalService < ApplicationService::Base
|
105
|
-
|
105
|
+
make :call
|
106
106
|
|
107
107
|
private
|
108
108
|
|
@@ -164,8 +164,8 @@ With this approach, all input attributes are available only from `inputs`. This
|
|
164
164
|
```ruby
|
165
165
|
class UsersService::Accept < ApplicationService::Base
|
166
166
|
input :user, type: User
|
167
|
-
|
168
|
-
|
167
|
+
|
168
|
+
make :accept!
|
169
169
|
|
170
170
|
private
|
171
171
|
|
@@ -182,8 +182,8 @@ With this approach, all input attributes are available from `inputs` as well as
|
|
182
182
|
```ruby
|
183
183
|
class UsersService::Accept < ApplicationService::Base
|
184
184
|
input :user, type: User, internal: true
|
185
|
-
|
186
|
-
|
185
|
+
|
186
|
+
make :accept!
|
187
187
|
|
188
188
|
private
|
189
189
|
|
@@ -217,7 +217,7 @@ class NotificationService::Create < ApplicationService::Base
|
|
217
217
|
|
218
218
|
output :notification, type: Notification
|
219
219
|
|
220
|
-
|
220
|
+
make :create_notification!
|
221
221
|
|
222
222
|
private
|
223
223
|
|
@@ -273,8 +273,8 @@ class NotificationService::Create < ApplicationService::Base
|
|
273
273
|
input :user, type: User
|
274
274
|
|
275
275
|
output :notification, type: Notification
|
276
|
-
|
277
|
-
|
276
|
+
|
277
|
+
make :create_notification!
|
278
278
|
|
279
279
|
private
|
280
280
|
|
@@ -293,11 +293,9 @@ class NotificationService::Create < ApplicationService::Base
|
|
293
293
|
internal :inviter, type: User
|
294
294
|
|
295
295
|
output :notification, type: Notification
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
make :create_notification!
|
300
|
-
end
|
296
|
+
|
297
|
+
make :assign_inviter
|
298
|
+
make :create_notification!
|
301
299
|
|
302
300
|
private
|
303
301
|
|
@@ -311,14 +309,12 @@ class NotificationService::Create < ApplicationService::Base
|
|
311
309
|
end
|
312
310
|
```
|
313
311
|
|
314
|
-
###
|
315
|
-
|
316
|
-
A "stage" is a single action or group of actions that needs to be "make".
|
312
|
+
### Make
|
317
313
|
|
318
314
|
#### Minimal example
|
319
315
|
|
320
316
|
```ruby
|
321
|
-
|
317
|
+
make :something
|
322
318
|
|
323
319
|
def something
|
324
320
|
# ...
|
@@ -328,26 +324,19 @@ end
|
|
328
324
|
#### Condition
|
329
325
|
|
330
326
|
```ruby
|
331
|
-
|
327
|
+
make :something, if: -> { Settings.something.enabled }
|
332
328
|
|
333
329
|
def something
|
334
330
|
# ...
|
335
331
|
end
|
336
332
|
```
|
337
333
|
|
338
|
-
####
|
339
|
-
|
340
|
-
The functionality of stage groups will be expanded in future releases.
|
334
|
+
#### Several
|
341
335
|
|
342
336
|
```ruby
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
end
|
347
|
-
|
348
|
-
stage do
|
349
|
-
make :process_result
|
350
|
-
end
|
337
|
+
make :assign_api_model
|
338
|
+
make :perform_api_request
|
339
|
+
make :process_result
|
351
340
|
|
352
341
|
def assign_api_model
|
353
342
|
self.api_model = APIModel.new
|
@@ -362,14 +351,18 @@ def process_result
|
|
362
351
|
end
|
363
352
|
```
|
364
353
|
|
354
|
+
#### Inheritance
|
355
|
+
|
356
|
+
Service inheritance is also supported.
|
357
|
+
|
365
358
|
### Failures
|
366
359
|
|
367
|
-
The methods that are used in
|
360
|
+
The methods that are used in `make` may fail. In order to more informatively provide information about this outside the service, the following methods were prepared.
|
368
361
|
|
369
362
|
#### Fail
|
370
363
|
|
371
364
|
```ruby
|
372
|
-
|
365
|
+
make :check!
|
373
366
|
|
374
367
|
def check!
|
375
368
|
return if inputs.invoice_number.start_with?("AA")
|
@@ -381,7 +374,7 @@ end
|
|
381
374
|
#### Fail for input
|
382
375
|
|
383
376
|
```ruby
|
384
|
-
|
377
|
+
make :check!
|
385
378
|
|
386
379
|
def check!
|
387
380
|
return if inputs.invoice_number.start_with?("AA")
|
data/lib/servactory/base.rb
CHANGED
@@ -18,7 +18,7 @@ module Servactory
|
|
18
18
|
|
19
19
|
input_arguments_workbench.check!
|
20
20
|
|
21
|
-
|
21
|
+
make_methods_workbench.run!
|
22
22
|
|
23
23
|
context_store.context.raise_first_fail
|
24
24
|
|
@@ -43,7 +43,7 @@ module Servactory
|
|
43
43
|
|
44
44
|
input_arguments_workbench.check!
|
45
45
|
|
46
|
-
|
46
|
+
make_methods_workbench.run!
|
47
47
|
|
48
48
|
Servactory::Result.prepare_for(
|
49
49
|
context: context_store.context,
|
@@ -55,16 +55,15 @@ module Servactory
|
|
55
55
|
|
56
56
|
attr_reader :context_store
|
57
57
|
|
58
|
-
def assign_data_with(arguments)
|
58
|
+
def assign_data_with(arguments)
|
59
59
|
input_arguments_workbench.assign(
|
60
60
|
context: context_store.context,
|
61
|
-
arguments: arguments
|
62
|
-
collection_of_input_options: collection_of_input_options
|
61
|
+
arguments: arguments
|
63
62
|
)
|
64
63
|
|
65
64
|
internal_arguments_workbench.assign(context: context_store.context)
|
66
65
|
output_arguments_workbench.assign(context: context_store.context)
|
67
|
-
|
66
|
+
make_methods_workbench.assign(context: context_store.context)
|
68
67
|
end
|
69
68
|
|
70
69
|
def prepare_data
|
@@ -5,7 +5,7 @@ module Servactory
|
|
5
5
|
class Collection
|
6
6
|
# NOTE: http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
|
7
7
|
extend Forwardable
|
8
|
-
def_delegators :@collection, :<<, :each, :map
|
8
|
+
def_delegators :@collection, :<<, :each, :map, :merge
|
9
9
|
|
10
10
|
def initialize(*)
|
11
11
|
@collection = Set.new
|
@@ -8,12 +8,17 @@ module Servactory
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ClassMethods
|
11
|
+
def inherited(child)
|
12
|
+
super
|
13
|
+
|
14
|
+
child.send(:collection_of_input_arguments).merge(collection_of_input_arguments)
|
15
|
+
end
|
16
|
+
|
11
17
|
private
|
12
18
|
|
13
19
|
def input(name, **options)
|
14
20
|
collection_of_input_arguments << InputArgument.new(
|
15
21
|
name,
|
16
|
-
collection_of_options: collection_of_input_options,
|
17
22
|
**options
|
18
23
|
)
|
19
24
|
end
|
@@ -22,10 +27,6 @@ module Servactory
|
|
22
27
|
@collection_of_input_arguments ||= Collection.new
|
23
28
|
end
|
24
29
|
|
25
|
-
def collection_of_input_options
|
26
|
-
@collection_of_input_options ||= OptionsCollection.new
|
27
|
-
end
|
28
|
-
|
29
30
|
def input_arguments_workbench
|
30
31
|
@input_arguments_workbench ||= Workbench.work_with(collection_of_input_arguments)
|
31
32
|
end
|
@@ -6,24 +6,20 @@ module Servactory
|
|
6
6
|
ARRAY_DEFAULT_VALUE = ->(is: false, message: nil) { { is: is, message: message } }
|
7
7
|
|
8
8
|
attr_reader :name,
|
9
|
-
:internal_name
|
10
|
-
:collection_of_options
|
9
|
+
:internal_name
|
11
10
|
|
12
11
|
# rubocop:disable Style/KeywordParametersOrder
|
13
12
|
def initialize(
|
14
13
|
name,
|
15
14
|
as: nil,
|
16
|
-
collection_of_options:,
|
17
15
|
type:,
|
18
16
|
**options
|
19
17
|
)
|
20
18
|
@name = name
|
21
19
|
@internal_name = as.present? ? as : name
|
22
|
-
@collection_of_options = collection_of_options
|
23
|
-
|
24
20
|
add_basic_options_with(type: type, options: options)
|
25
21
|
|
26
|
-
|
22
|
+
collection_of_options.each do |option|
|
27
23
|
self.class.attr_reader(:"#{option.name}")
|
28
24
|
|
29
25
|
instance_variable_set(:"@#{option.name}", option.value)
|
@@ -182,6 +178,10 @@ module Servactory
|
|
182
178
|
)
|
183
179
|
end
|
184
180
|
|
181
|
+
def collection_of_options
|
182
|
+
@collection_of_options ||= OptionsCollection.new
|
183
|
+
end
|
184
|
+
|
185
185
|
def options_for_checks
|
186
186
|
collection_of_options.options_for_checks
|
187
187
|
end
|
@@ -8,11 +8,10 @@ module Servactory
|
|
8
8
|
new(...).check!
|
9
9
|
end
|
10
10
|
|
11
|
-
def initialize(context, incoming_arguments, collection_of_input_arguments
|
11
|
+
def initialize(context, incoming_arguments, collection_of_input_arguments)
|
12
12
|
@context = context
|
13
13
|
@incoming_arguments = incoming_arguments
|
14
14
|
@collection_of_input_arguments = collection_of_input_arguments
|
15
|
-
@collection_of_input_options = collection_of_input_options
|
16
15
|
end
|
17
16
|
|
18
17
|
def check!
|
@@ -32,7 +31,7 @@ module Servactory
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def process_option(check_key, check_options, input:)
|
35
|
-
|
34
|
+
check_classes_from(input).each do |check_class|
|
36
35
|
errors_from_checks = process_check_class(
|
37
36
|
check_class,
|
38
37
|
input: input,
|
@@ -56,8 +55,8 @@ module Servactory
|
|
56
55
|
|
57
56
|
########################################################################
|
58
57
|
|
59
|
-
def
|
60
|
-
|
58
|
+
def check_classes_from(input)
|
59
|
+
input.collection_of_options.check_classes
|
61
60
|
end
|
62
61
|
|
63
62
|
########################################################################
|
@@ -11,10 +11,9 @@ module Servactory
|
|
11
11
|
@collection_of_input_arguments = collection_of_input_arguments
|
12
12
|
end
|
13
13
|
|
14
|
-
def assign(context:, arguments
|
14
|
+
def assign(context:, arguments:)
|
15
15
|
@context = context
|
16
16
|
@incoming_arguments = arguments
|
17
|
-
@collection_of_input_options = collection_of_input_options
|
18
17
|
end
|
19
18
|
|
20
19
|
def find_unnecessary!
|
@@ -30,14 +29,13 @@ module Servactory
|
|
30
29
|
end
|
31
30
|
|
32
31
|
def check!
|
33
|
-
Tools::Check.check!(context, @incoming_arguments, collection_of_input_arguments
|
32
|
+
Tools::Check.check!(context, @incoming_arguments, collection_of_input_arguments)
|
34
33
|
end
|
35
34
|
|
36
35
|
private
|
37
36
|
|
38
37
|
attr_reader :context,
|
39
|
-
:collection_of_input_arguments
|
40
|
-
:collection_of_input_options
|
38
|
+
:collection_of_input_arguments
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
@@ -5,7 +5,7 @@ module Servactory
|
|
5
5
|
class Collection
|
6
6
|
# NOTE: http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
|
7
7
|
extend Forwardable
|
8
|
-
def_delegators :@collection, :<<, :each, :map
|
8
|
+
def_delegators :@collection, :<<, :each, :map, :merge
|
9
9
|
|
10
10
|
def initialize(*)
|
11
11
|
@collection = Set.new
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Servactory
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module MakeMethods
|
5
|
+
class Collection
|
6
6
|
# NOTE: http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
|
7
7
|
extend Forwardable
|
8
|
-
def_delegators :@
|
8
|
+
def_delegators :@collection, :<<, :each, :merge
|
9
9
|
|
10
10
|
def initialize(*)
|
11
|
-
@
|
11
|
+
@collection = Set.new
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Servactory
|
4
|
+
module MakeMethods
|
5
|
+
module DSL
|
6
|
+
def self.included(base)
|
7
|
+
base.extend(ClassMethods)
|
8
|
+
end
|
9
|
+
|
10
|
+
module ClassMethods
|
11
|
+
def inherited(child)
|
12
|
+
super
|
13
|
+
|
14
|
+
child.send(:collection_of_make_methods).merge(collection_of_make_methods)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def make(name, **options)
|
20
|
+
collection_of_make_methods << MakeMethod.new(name, **options)
|
21
|
+
end
|
22
|
+
|
23
|
+
def collection_of_make_methods
|
24
|
+
@collection_of_make_methods ||= Collection.new
|
25
|
+
end
|
26
|
+
|
27
|
+
def make_methods_workbench
|
28
|
+
@make_methods_workbench ||= Workbench.work_with(collection_of_make_methods)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -1,21 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Servactory
|
4
|
-
module
|
5
|
-
class
|
6
|
-
attr_reader :name,
|
4
|
+
module MakeMethods
|
5
|
+
class MakeMethod
|
6
|
+
attr_reader :name,
|
7
|
+
:condition
|
7
8
|
|
8
9
|
def initialize(name, **options)
|
9
10
|
@name = name
|
10
11
|
|
11
12
|
@condition = options.fetch(:if, nil)
|
12
13
|
end
|
13
|
-
|
14
|
-
# def options
|
15
|
-
# {
|
16
|
-
# condition:
|
17
|
-
# }
|
18
|
-
# end
|
19
14
|
end
|
20
15
|
end
|
21
16
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Servactory
|
4
|
+
module MakeMethods
|
5
|
+
class Workbench
|
6
|
+
def self.work_with(...)
|
7
|
+
new(...)
|
8
|
+
end
|
9
|
+
|
10
|
+
def initialize(collection_of_make_methods)
|
11
|
+
@collection_of_make_methods = collection_of_make_methods
|
12
|
+
end
|
13
|
+
|
14
|
+
def assign(context:)
|
15
|
+
@context = context
|
16
|
+
end
|
17
|
+
|
18
|
+
def run!
|
19
|
+
collection_of_make_methods.each do |make_method|
|
20
|
+
next if unnecessary_for?(make_method)
|
21
|
+
|
22
|
+
context.send(make_method.name)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
attr_reader :context,
|
29
|
+
:collection_of_make_methods
|
30
|
+
|
31
|
+
def unnecessary_for?(make_method)
|
32
|
+
condition = make_method.condition
|
33
|
+
|
34
|
+
return false if condition.blank?
|
35
|
+
return !Servactory::Utils.boolean?(condition) unless condition.is_a?(Proc)
|
36
|
+
|
37
|
+
!condition.call(context)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -5,7 +5,7 @@ module Servactory
|
|
5
5
|
class Collection
|
6
6
|
# NOTE: http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
|
7
7
|
extend Forwardable
|
8
|
-
def_delegators :@collection, :<<, :each, :map
|
8
|
+
def_delegators :@collection, :<<, :each, :map, :merge
|
9
9
|
|
10
10
|
def initialize(*)
|
11
11
|
@collection = Set.new
|
data/lib/servactory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -219,6 +219,10 @@ files:
|
|
219
219
|
- lib/servactory/internal_arguments/internal_argument.rb
|
220
220
|
- lib/servactory/internal_arguments/tools/prepare.rb
|
221
221
|
- lib/servactory/internal_arguments/workbench.rb
|
222
|
+
- lib/servactory/make_methods/collection.rb
|
223
|
+
- lib/servactory/make_methods/dsl.rb
|
224
|
+
- lib/servactory/make_methods/make_method.rb
|
225
|
+
- lib/servactory/make_methods/workbench.rb
|
222
226
|
- lib/servactory/output_arguments/checks/base.rb
|
223
227
|
- lib/servactory/output_arguments/checks/type.rb
|
224
228
|
- lib/servactory/output_arguments/collection.rb
|
@@ -228,11 +232,6 @@ files:
|
|
228
232
|
- lib/servactory/output_arguments/tools/prepare.rb
|
229
233
|
- lib/servactory/output_arguments/workbench.rb
|
230
234
|
- lib/servactory/result.rb
|
231
|
-
- lib/servactory/stage/dsl.rb
|
232
|
-
- lib/servactory/stage/factory.rb
|
233
|
-
- lib/servactory/stage/handyman.rb
|
234
|
-
- lib/servactory/stage/method.rb
|
235
|
-
- lib/servactory/stage/methods.rb
|
236
235
|
- lib/servactory/utils.rb
|
237
236
|
- lib/servactory/version.rb
|
238
237
|
homepage: https://github.com/afuno/servactory
|
data/lib/servactory/stage/dsl.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Servactory
|
4
|
-
module Stage
|
5
|
-
module DSL
|
6
|
-
def self.included(base)
|
7
|
-
base.extend(ClassMethods)
|
8
|
-
end
|
9
|
-
|
10
|
-
module ClassMethods
|
11
|
-
private
|
12
|
-
|
13
|
-
attr_reader :stage_handyman
|
14
|
-
|
15
|
-
def stage(&block)
|
16
|
-
@stage_factory ||= Factory.new
|
17
|
-
|
18
|
-
@stage_factory.instance_eval(&block)
|
19
|
-
|
20
|
-
@stage_handyman = Handyman.work_in(@stage_factory)
|
21
|
-
|
22
|
-
# @stage_factory
|
23
|
-
|
24
|
-
nil
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Servactory
|
4
|
-
module Stage
|
5
|
-
class Handyman
|
6
|
-
def self.work_in(...)
|
7
|
-
new(...)
|
8
|
-
end
|
9
|
-
|
10
|
-
def initialize(factory)
|
11
|
-
@factory = factory
|
12
|
-
end
|
13
|
-
|
14
|
-
def assign(context:)
|
15
|
-
@context = context
|
16
|
-
end
|
17
|
-
|
18
|
-
def methods
|
19
|
-
factory.methods
|
20
|
-
end
|
21
|
-
|
22
|
-
def run_methods!
|
23
|
-
methods.each do |method|
|
24
|
-
next if method.condition && !method.condition.call(context)
|
25
|
-
|
26
|
-
context.send(method.name)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
private
|
31
|
-
|
32
|
-
attr_reader :factory, :context
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|