Class: Sqewer::Connection::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/sqewer/connection.rb

Overview

A wrapper for most important properties of the received message

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



17
18
19
# File 'lib/sqewer/connection.rb', line 17

def attributes
  @attributes
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



17
18
19
# File 'lib/sqewer/connection.rb', line 17

def body
  @body
end

#receipt_handleObject

Returns the value of attribute receipt_handle

Returns:

  • (Object)

    the current value of receipt_handle



17
18
19
# File 'lib/sqewer/connection.rb', line 17

def receipt_handle
  @receipt_handle
end

Instance Method Details

#has_body?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/sqewer/connection.rb', line 22

def has_body?
  body && !body.empty?
end

#inspectObject



18
19
20
# File 'lib/sqewer/connection.rb', line 18

def inspect
  body.inspect
end