Class: Protobuf::Field::BaseFieldObjectDefinitions::BaseToMessageHashWithStringKey
- Inherits:
-
Object
- Object
- Protobuf::Field::BaseFieldObjectDefinitions::BaseToMessageHashWithStringKey
- Defined in:
- lib/protobuf/field/base_field_object_definitions.rb
Instance Method Summary collapse
- #call(values, result) ⇒ Object
-
#initialize(selph) ⇒ BaseToMessageHashWithStringKey
constructor
A new instance of BaseToMessageHashWithStringKey.
Constructor Details
#initialize(selph) ⇒ BaseToMessageHashWithStringKey
Returns a new instance of BaseToMessageHashWithStringKey.
17 18 19 20 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 17 def initialize(selph) @selph = selph @name = selph.name.to_s end |
Instance Method Details
#call(values, result) ⇒ Object
22 23 24 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 22 def call(values, result) result[@name] = @selph.value_from_values(values) end |