Class: GlassOctopus::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/glass_octopus/message.rb

Overview

Represents a message from a Kafka topic.

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



3
4
5
# File 'lib/glass_octopus/message.rb', line 3

def key
  @key
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



3
4
5
# File 'lib/glass_octopus/message.rb', line 3

def offset
  @offset
end

#partitionObject

Returns the value of attribute partition

Returns:

  • (Object)

    the current value of partition



3
4
5
# File 'lib/glass_octopus/message.rb', line 3

def partition
  @partition
end

#topicObject

Returns the value of attribute topic

Returns:

  • (Object)

    the current value of topic



3
4
5
# File 'lib/glass_octopus/message.rb', line 3

def topic
  @topic
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/glass_octopus/message.rb', line 3

def value
  @value
end