Module: Protod::ProtocolBuffers::GoogleProtobufValueStringified

Defined in:
lib/protod/protocol_buffers.rb

Instance Method Summary collapse

Instance Method Details

#from_ruby(value) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/protod/protocol_buffers.rb', line 28

def from_ruby(value)
  case value
  when ::Symbol
    self.string_value = value.to_s
  else
    super(value)
  end
end