Class: Dsu::Services::Entry::HydratorService
- Inherits:
-
Object
- Object
- Dsu::Services::Entry::HydratorService
- Defined in:
- lib/dsu/services/entry/hydrator_service.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(entries_array:, options: {}) ⇒ HydratorService
constructor
A new instance of HydratorService.
Constructor Details
#initialize(entries_array:, options: {}) ⇒ HydratorService
Returns a new instance of HydratorService.
9 10 11 12 13 14 15 |
# File 'lib/dsu/services/entry/hydrator_service.rb', line 9 def initialize(entries_array:, options: {}) raise ArgumentError, 'entries_array is nil' if entries_array.nil? raise ArgumentError, 'options is nil' if .nil? @entries_array = entries_array @options = || {} end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/dsu/services/entry/hydrator_service.rb', line 17 def call hydrate end |