Class: CycloneLariat::Fake

Inherits:
Object
  • Object
show all
Defined in:
lib/cyclone_lariat/fake.rb

Class Method Summary collapse

Class Method Details

.sns_publish_response(message) ⇒ Object



5
6
7
8
9
10
# File 'lib/cyclone_lariat/fake.rb', line 5

def self.sns_publish_response(message)
  Aws::SNS::Types::PublishResponse.new.tap do |resp|
    resp.message_id = SecureRandom.uuid
    resp.sequence_number = rand(10).to_s if message.fifo?
  end
end

.sqs_send_message_result(message) ⇒ Object



12
13
14
15
16
17
# File 'lib/cyclone_lariat/fake.rb', line 12

def self.sqs_send_message_result(message)
  Aws::SQS::Types::SendMessageResult.new.tap do |res|
    res.message_id = SecureRandom.uuid
    res.sequence_number = rand(10).to_s if message.fifo?
  end
end