Class: TypedParams::Mapper
- Inherits:
-
Object
- Object
- TypedParams::Mapper
show all
- Defined in:
- lib/typed_params/mapper.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(schema:, controller: nil) ⇒ Mapper
Returns a new instance of Mapper.
5
6
7
8
|
# File 'lib/typed_params/mapper.rb', line 5
def initialize(schema:, controller: nil)
@controller = controller
@schema = schema
end
|
Class Method Details
.call(*args, **kwargs, &block) ⇒ Object
12
13
14
|
# File 'lib/typed_params/mapper.rb', line 12
def self.call(*args, **kwargs, &block)
new(**kwargs).call(*args, &block)
end
|
Instance Method Details
#call ⇒ Object
10
|
# File 'lib/typed_params/mapper.rb', line 10
def call(*, &) = raise NotImplementedError
|