Class: UseCases::Types::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(fetcher, mapper, formatter, dispatcher) ⇒ Config

Returns a new instance of 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

#dispatcherObject (readonly)

Returns the value of attribute dispatcher.



9
10
11
# File 'lib/bas/use_cases/types/config.rb', line 9

def dispatcher
  @dispatcher
end

#fetcherObject (readonly)

Returns the value of attribute fetcher.



9
10
11
# File 'lib/bas/use_cases/types/config.rb', line 9

def fetcher
  @fetcher
end

#formatterObject (readonly)

Returns the value of attribute formatter.



9
10
11
# File 'lib/bas/use_cases/types/config.rb', line 9

def formatter
  @formatter
end

#mapperObject (readonly)

Returns the value of attribute mapper.



9
10
11
# File 'lib/bas/use_cases/types/config.rb', line 9

def mapper
  @mapper
end