Class: UseCases::Types::Config
- Inherits:
-
Object
- Object
- UseCases::Types::Config
- Defined in:
- lib/bas/use_cases/types/config.rb
Overview
Represents a the configuration composing the initial components required by a UseCases::UseCase implementation.
Instance Attribute Summary collapse
-
#dispatcher ⇒ Object
readonly
Returns the value of attribute dispatcher.
-
#fetcher ⇒ Object
readonly
Returns the value of attribute fetcher.
-
#formatter ⇒ Object
readonly
Returns the value of attribute formatter.
-
#mapper ⇒ Object
readonly
Returns the value of attribute mapper.
Instance Method Summary collapse
-
#initialize(fetcher, mapper, formatter, dispatcher) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(fetcher, mapper, formatter, dispatcher) ⇒ Config
11 12 13 14 15 16 |
# File 'lib/bas/use_cases/types/config.rb', line 11 def initialize(fetcher, mapper, formatter, dispatcher) @fetcher = fetcher @mapper = mapper @formatter = formatter @dispatcher = dispatcher end |
Instance Attribute Details
#dispatcher ⇒ Object (readonly)
Returns the value of attribute dispatcher.
9 10 11 |
# File 'lib/bas/use_cases/types/config.rb', line 9 def dispatcher @dispatcher end |
#fetcher ⇒ Object (readonly)
Returns the value of attribute fetcher.
9 10 11 |
# File 'lib/bas/use_cases/types/config.rb', line 9 def fetcher @fetcher end |
#formatter ⇒ Object (readonly)
Returns the value of attribute formatter.
9 10 11 |
# File 'lib/bas/use_cases/types/config.rb', line 9 def formatter @formatter end |
#mapper ⇒ Object (readonly)
Returns the value of attribute mapper.
9 10 11 |
# File 'lib/bas/use_cases/types/config.rb', line 9 def mapper @mapper end |