Sha256: a5ceb426f93b608b9d4e7fad23604ed3b734466b4ede5b0e26ea107e52c28381

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

module AwsLogCleaner

  # Responsible for retrieving API gateway instances filtered by prefix
  class ApiGatewayRetriever

    def initialize(api_gateway)
      @api_gateway = api_gateway
    end

    def retrieve(prefix)
      apis = @api_gateway.list_all_apis
      apis.select{ |item| item.name.to_s.downcase.start_with?(prefix) }
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws_log_cleaner-0.1.4 lib/aws_log_cleaner/api_gateway_retriever.rb
aws_log_cleaner-0.1.3 lib/aws_log_cleaner/api_gateway_retriever.rb