Class: Hydra::RemoteIdentifier::Mapper
- Inherits:
-
Object
- Object
- Hydra::RemoteIdentifier::Mapper
- Defined in:
- lib/hydra/remote_identifier/mapper.rb
Overview
The Mapper is responsible for transforming a target, via a Map, into an acceptable format for a Minter
Defined Under Namespace
Instance Attribute Summary collapse
-
#map ⇒ Object
readonly
Returns the value of attribute map.
Instance Method Summary collapse
- #call(target, wrapper_builder = Wrapper) ⇒ Object
-
#initialize(service_class, map_builder = Map, &mapping_block) ⇒ Mapper
constructor
A new instance of Mapper.
Constructor Details
Instance Attribute Details
#map ⇒ Object (readonly)
Returns the value of attribute map.
10 11 12 |
# File 'lib/hydra/remote_identifier/mapper.rb', line 10 def map @map end |
Instance Method Details
#call(target, wrapper_builder = Wrapper) ⇒ Object
15 16 17 |
# File 'lib/hydra/remote_identifier/mapper.rb', line 15 def call(target, wrapper_builder = Wrapper) wrapper_builder.new(map, target) end |