Class: ReeMapper::StrategyOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/strategy_output.rb

Direct Known Subclasses

HashOutput, ObjectOutput, ReeDtoOutput, StructOutput

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dto) ⇒ StrategyOutput

Returns a new instance of StrategyOutput.



7
8
9
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/strategy_output.rb', line 7

def initialize(dto)
  @dto = dto
end

Instance Attribute Details

#dtoObject (readonly)

Returns the value of attribute dto.



4
5
6
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/strategy_output.rb', line 4

def dto
  @dto
end

Instance Method Details

#assign_value(object, field, value) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/strategy_output.rb', line 12

def assign_value(object, field, value)
  raise NotImplementedError
end

#prepare_dto(field_names) ⇒ Object



17
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/strategy_output.rb', line 17

def prepare_dto(field_names); end