docbrown/app/services/aws/fake_client.rb
2019-04-26 12:16:16 -04:00

8 lines
235 B
Ruby

# Fake Aws client is used in non-production environments to prevent actual calls to AWS lambda
module Aws
class FakeClient
def invoke(*)
OpenStruct.new(payload: [{ body: { message: 0 }.to_json }.to_json])
end
end
end