Sha256: b571e4e37ef770729959bf1372ca100c3873afa01f345fc622318affb1d98a04
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 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.6 | lib/aws_log_cleaner/api_gateway_retriever.rb |
aws_log_cleaner-0.1.5 | lib/aws_log_cleaner/api_gateway_retriever.rb |