Class: AwsLogCleaner::ApiGateway
- Inherits:
-
Object
- Object
- AwsLogCleaner::ApiGateway
- Defined in:
- lib/aws_log_cleaner/api_gateway.rb
Overview
Class responsible for interacting with the AWS ApiGatewayClient
Instance Method Summary collapse
-
#initialize(credentials) ⇒ ApiGateway
constructor
A new instance of ApiGateway.
- #list_all_apis ⇒ Object
Constructor Details
#initialize(credentials) ⇒ ApiGateway
Returns a new instance of ApiGateway.
8 9 10 11 12 13 |
# File 'lib/aws_log_cleaner/api_gateway.rb', line 8 def initialize(credentials) @api_client = Aws::APIGateway::Client.new( region: credentials.region, credentials: credentials.credentials ) end |
Instance Method Details
#list_all_apis ⇒ Object
15 16 17 18 |
# File 'lib/aws_log_cleaner/api_gateway.rb', line 15 def list_all_apis @rest_apis = get_rest_apis if @rest_apis.nil? @rest_apis end |