Method: Avro::Protocol::Message#to_avro
- Defined in:
- lib/avro/protocol.rb
#to_avro(names = Set.new) ⇒ Object
128 129 130 131 132 133 134 135 136 |
# File 'lib/avro/protocol.rb', line 128 def to_avro(names=Set.new) { 'request' => request.to_avro(names), 'response' => response.to_avro(names) }.tap do |hash| hash['errors'] = errors.to_avro(names) if errors hash['doc'] = @doc if @doc end end |