Class: Fog::AWS::RDS::Parameters
- Inherits:
-
Collection
- Object
- Array
- Collection
- Fog::AWS::RDS::Parameters
- Defined in:
- lib/fog/aws/models/rds/parameters.rb
Instance Attribute Summary
Attributes inherited from Collection
Instance Method Summary collapse
- #all(filters = filters) ⇒ Object
-
#initialize(attributes) ⇒ Parameters
constructor
A new instance of Parameters.
Methods inherited from Collection
#clear, #create, #destroy, #inspect, #load, model, #model, #new, #reload, #table, #to_json
Methods included from Fog::Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Fog::Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
#initialize(attributes) ⇒ Parameters
Returns a new instance of Parameters.
13 14 15 16 17 18 19 |
# File 'lib/fog/aws/models/rds/parameters.rb', line 13 def initialize(attributes) self.filters ||= {} if attributes[:source] filters[:source] = attributes[:source] end super end |
Instance Method Details
#all(filters = filters) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/fog/aws/models/rds/parameters.rb', line 21 def all(filters = filters) self.filters = filters result = [] marker = nil finished = false while !finished data = service.describe_db_parameters(group.id, filters.merge(:marker => marker)).body result.concat(data['DescribeDBParametersResult']['Parameters']) marker = data['DescribeDBParametersResult']['Marker'] finished = marker.nil? end load(result) # data is an array of attribute hashes end |