Class: Fog::AWS::RDS::LogFiles
- Inherits:
-
Collection
- Object
- Collection
- Fog::AWS::RDS::LogFiles
- Defined in:
- lib/fog/aws/models/rds/log_files.rb
Instance Method Summary collapse
-
#all(filters_arg = filters) ⇒ Object
This method deliberately returns only a single page of results.
- #each(filters_arg = filters) ⇒ Object
- #get(file_name = nil) ⇒ Object
-
#initialize(attributes) ⇒ LogFiles
constructor
A new instance of LogFiles.
Constructor Details
#initialize(attributes) ⇒ LogFiles
Returns a new instance of LogFiles.
11 12 13 14 |
# File 'lib/fog/aws/models/rds/log_files.rb', line 11 def initialize(attributes) self.filters ||= {} super end |
Instance Method Details
#all(filters_arg = filters) ⇒ Object
This method deliberately returns only a single page of results
17 18 19 20 21 22 23 |
# File 'lib/fog/aws/models/rds/log_files.rb', line 17 def all(filters_arg = filters) filters.merge!(filters_arg) result = service.describe_db_log_files(rds_id, filters).body['DescribeDBLogFilesResult'] filters[:marker] = result['Marker'] load(result['DBLogFiles']) end |
#each(filters_arg = filters) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fog/aws/models/rds/log_files.rb', line 25 def each(filters_arg = filters) if block_given? begin page = self.all(filters_arg) # We need to explicitly use the base 'each' method here on the page, otherwise we get infinite recursion base_each = Fog::Collection.instance_method(:each) base_each.bind(page).call { |log_file| yield log_file } end while self.filters[:marker] end self end |