Class: Fog::AWS::KMS::Keys
- Inherits:
-
PagedCollection
- Object
- PagedCollection
- Fog::AWS::KMS::Keys
- Defined in:
- lib/fog/aws/models/kms/keys.rb
Instance Method Summary collapse
-
#all(filters_arg = filters) ⇒ Object
This method deliberately returns only a single page of results.
-
#initialize(attributes) ⇒ Keys
constructor
A new instance of Keys.
Constructor Details
#initialize(attributes) ⇒ Keys
Returns a new instance of Keys.
12 13 14 15 |
# File 'lib/fog/aws/models/kms/keys.rb', line 12 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
18 19 20 21 22 23 24 25 |
# File 'lib/fog/aws/models/kms/keys.rb', line 18 def all(filters_arg = filters) filters.merge!(filters_arg) result = service.list_keys(filters).body filters[:marker] = result['Marker'] self.truncated = result['Truncated'] load(result['Keys']) end |