Parent

Methods

RightAws::SqsGen2::Message

Attributes

body[R]
id[R]
queue[R]
receipt_handle[R]
receive_checksum[RW]
received_at[RW]
send_checksum[RW]
sent_at[RW]
visibility[R]

Public Class Methods

new(queue, id=nil, rh = nil, body=nil, visibility=nil) click to toggle source
# File lib/sqs/right_sqs_gen2.rb, line 259
def initialize(queue, id=nil, rh = nil, body=nil, visibility=nil)
  @queue       = queue
  @id          = id
  @receipt_handle = rh 
  @body        = body
  @visibility  = visibility
  @sent_at     = nil
  @received_at = nil
  @send_checksum = nil
  @receive_checksum = nil
end

Public Instance Methods

delete() click to toggle source

Removes message from queue. Returns true.

# File lib/sqs/right_sqs_gen2.rb, line 278
def delete
  @queue.sqs.interface.delete_message(@queue.url, @receipt_handle) if @receipt_handle
end
to_s() click to toggle source

Returns Message instance body.

# File lib/sqs/right_sqs_gen2.rb, line 272
def to_s
  @body
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.