Class: Protobuf::Field::BaseFieldObjectDefinitions::RepeatedFieldValueFromValuesForSerialization
- Inherits:
-
Object
- Object
- Protobuf::Field::BaseFieldObjectDefinitions::RepeatedFieldValueFromValuesForSerialization
- Defined in:
- lib/protobuf/field/base_field_object_definitions.rb
Instance Method Summary collapse
- #call(values) ⇒ Object
-
#initialize(selph) ⇒ RepeatedFieldValueFromValuesForSerialization
constructor
A new instance of RepeatedFieldValueFromValuesForSerialization.
Constructor Details
#initialize(selph) ⇒ RepeatedFieldValueFromValuesForSerialization
Returns a new instance of RepeatedFieldValueFromValuesForSerialization.
493 494 495 496 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 493 def initialize(selph) @selph = selph @fully_qualified_name = selph.fully_qualified_name end |
Instance Method Details
#call(values) ⇒ Object
498 499 500 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 498 def call(values) values[@fully_qualified_name] ||= ::Protobuf::Field::FieldArray.new(@selph) end |