Class: AvroTurf::Messaging::DecodedMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/avro_turf/messaging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schema_id, writer_schema, reader_schema, message) ⇒ DecodedMessage

Returns a new instance of DecodedMessage.



31
32
33
34
35
36
# File 'lib/avro_turf/messaging.rb', line 31

def initialize(schema_id, writer_schema, reader_schema, message)
  @schema_id = schema_id
  @writer_schema = writer_schema
  @reader_schema = reader_schema
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



29
30
31
# File 'lib/avro_turf/messaging.rb', line 29

def message
  @message
end

#reader_schemaObject (readonly)

Returns the value of attribute reader_schema.



28
29
30
# File 'lib/avro_turf/messaging.rb', line 28

def reader_schema
  @reader_schema
end

#schema_idObject (readonly)

Returns the value of attribute schema_id.



26
27
28
# File 'lib/avro_turf/messaging.rb', line 26

def schema_id
  @schema_id
end

#writer_schemaObject (readonly)

Returns the value of attribute writer_schema.



27
28
29
# File 'lib/avro_turf/messaging.rb', line 27

def writer_schema
  @writer_schema
end