Sha256: 569d3bad419d2d1de1d29022fb553083e598ddb75c9a9b036feb1e501d848518

Contents?: true

Size: 334 Bytes

Versions: 6

Compression:

Stored size: 334 Bytes

Contents

module AwsAlertMonitor
  module AWS
    class SQS

      def receive_message(url)
        queue(url).receive_message 
      end

      def approximate_number_of_messages(url)
        queue(url).approximate_number_of_messages
      end

      private

      def queue(url)
        ::AWS::SQS::Queue.new url
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
aws-alert-monitor-0.1.0 lib/aws-alert-monitor/aws/sqs.rb
aws-alert-monitor-0.0.5 lib/aws-alert-monitor/aws/sqs.rb
aws-alert-monitor-0.0.4 lib/aws-alert-monitor/aws/sqs.rb
aws-alert-monitor-0.0.3 lib/aws-alert-monitor/aws/sqs.rb
aws-alert-monitor-0.0.2 lib/aws-alert-monitor/aws/sqs.rb
aws-alert-monitor-0.0.1 lib/aws-alert-monitor/aws/sqs.rb