Class: LSQS::Actions::ChangeMessageVisibility

Inherits:
Base
  • Object
show all
Defined in:
lib/lsqs/actions/change_message_visibility.rb

Instance Attribute Summary

Attributes inherited from Base

#builder, #queue_list

Instance Method Summary collapse

Methods inherited from Base

#build_url, #initialize, #name, #to_xml

Constructor Details

This class inherits a constructor from LSQS::Actions::Base

Instance Method Details

#perform(params) ⇒ String

Performs the specific action.

Parameters:

  • params (Hash)

Returns:

  • (String)


11
12
13
14
15
16
17
18
19
20
# File 'lib/lsqs/actions/change_message_visibility.rb', line 11

def perform(params)
  name       = params['QueueName']
  visibility = params['VisibilityTimeout']
  receipt    = params['ReceiptHandle']
  queue = queue_list.find(name)
  
  queue.change_message_visibility(receipt, visibility.to_i)

  return
end