Class: Operaton::Bpm::Client::Variable::Impl::Mapper::BooleanValueMapper
- Inherits:
-
PrimitiveValueMapper
- Object
- AbstractTypedValueMapper
- PrimitiveValueMapper
- Operaton::Bpm::Client::Variable::Impl::Mapper::BooleanValueMapper
- Defined in:
- lib/operaton/bpm/client/variable/impl/mapper/boolean_value_mapper.rb
Overview
Mirrors org.operaton.bpm.client.variable.impl.mapper.BooleanValueMapper
Instance Attribute Summary
Attributes inherited from AbstractTypedValueMapper
Instance Method Summary collapse
- #convert_to_typed_value(untyped_value) ⇒ Object
-
#initialize ⇒ BooleanValueMapper
constructor
A new instance of BooleanValueMapper.
- #read_typed_value(typed_value_field) ⇒ Object
- #write_value(boolean_value, typed_value_field) ⇒ Object
Methods inherited from PrimitiveValueMapper
Methods inherited from AbstractTypedValueMapper
#can_handle_typed_value, #can_handle_typed_value_field, #serialization_dataformat, #type
Methods included from ValueMapper
#can_handle_typed_value, #can_handle_typed_value_field, #read_value, #serialization_dataformat, #type
Constructor Details
#initialize ⇒ BooleanValueMapper
Returns a new instance of BooleanValueMapper.
14 15 16 |
# File 'lib/operaton/bpm/client/variable/impl/mapper/boolean_value_mapper.rb', line 14 def initialize super(Engine::Variable::ValueType::BOOLEAN) end |
Instance Method Details
#convert_to_typed_value(untyped_value) ⇒ Object
18 19 20 |
# File 'lib/operaton/bpm/client/variable/impl/mapper/boolean_value_mapper.rb', line 18 def convert_to_typed_value(untyped_value) Engine::Variable::Variables.boolean_value(untyped_value.value) end |
#read_typed_value(typed_value_field) ⇒ Object
22 23 24 |
# File 'lib/operaton/bpm/client/variable/impl/mapper/boolean_value_mapper.rb', line 22 def read_typed_value(typed_value_field) Engine::Variable::Variables.boolean_value(typed_value_field.value) end |
#write_value(boolean_value, typed_value_field) ⇒ Object
26 27 28 |
# File 'lib/operaton/bpm/client/variable/impl/mapper/boolean_value_mapper.rb', line 26 def write_value(boolean_value, typed_value_field) typed_value_field.value = boolean_value.value end |