Sha256: 45cad15c509b8220af03de4fd796f32de7b7634e8e0574a5a3564be97d4138d3
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module DispatchRider module QueueServices class AwsSqs < Base class MessageBodyExtractor attr_reader :parsed_message def initialize(raw_message) @parsed_message = JSON.parse(raw_message.body) end def extract parsed_message.has_key?("Message") ? parsed_message["Message"] : parsed_message.to_json end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-2.2.0 | lib/dispatch-rider/queue_services/aws_sqs/message_body_extractor.rb |