Class: Shoryuken::InlineMessage

Inherits:
Struct
  • Object
show all
Defined in:
lib/shoryuken/inline_message.rb

Overview

A high-performance alternative to OpenStruct for representing SQS messages.

InlineMessage is a Struct-based implementation that provides the same interface as the previous OpenStruct-based message representation but with significantly better performance characteristics. It contains all the essential attributes needed to represent an Amazon SQS message within the Shoryuken framework.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def attributes
  @attributes
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def body
  @body
end

#deleteObject

Returns the value of attribute delete

Returns:

  • (Object)

    the current value of delete



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def delete
  @delete
end

#md5_of_bodyObject

Returns the value of attribute md5_of_body

Returns:

  • (Object)

    the current value of md5_of_body



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def md5_of_body
  @md5_of_body
end

#md5_of_message_attributesObject

Returns the value of attribute md5_of_message_attributes

Returns:

  • (Object)

    the current value of md5_of_message_attributes



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def md5_of_message_attributes
  @md5_of_message_attributes
end

#message_attributesObject

Returns the value of attribute message_attributes

Returns:

  • (Object)

    the current value of message_attributes



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def message_attributes
  @message_attributes
end

#message_idObject

Returns the value of attribute message_id

Returns:

  • (Object)

    the current value of message_id



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def message_id
  @message_id
end

#queue_nameObject

Returns the value of attribute queue_name

Returns:

  • (Object)

    the current value of queue_name



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def queue_name
  @queue_name
end

#receipt_handleObject

Returns the value of attribute receipt_handle

Returns:

  • (Object)

    the current value of receipt_handle



10
11
12
# File 'lib/shoryuken/inline_message.rb', line 10

def receipt_handle
  @receipt_handle
end