Class: Fog::AWS::RDS::Parameters
- Inherits:
-
Collection
- Object
- Array
- Collection
- Fog::AWS::RDS::Parameters
- Defined in:
- lib/rackspace-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 Fog::Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
#initialize(attributes) ⇒ Parameters
Returns a new instance of Parameters.
13 14 15 16 17 18 19 |
# File 'lib/rackspace-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/rackspace-fog/aws/models/rds/parameters.rb', line 21 def all(filters = filters) self.filters = filters result = [] marker = nil finished = false while !finished data = connection.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 |