Class: Fog::Parsers::AWS::KMS::ListKeys
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::AWS::KMS::ListKeys
- Defined in:
- lib/fog/aws/parsers/kms/list_keys.rb
Instance Method Summary collapse
Instance Method Details
#end_element(name) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/fog/aws/parsers/kms/list_keys.rb', line 20 def end_element(name) case name when 'KeyId', 'KeyArn' @key[name] = value when 'member' @keys << @key when 'Keys' @response['Keys'] = @keys when 'Truncated' @response['Truncated'] = (value == 'true') when 'NextMarker' @response['Marker'] = value end end |
#reset ⇒ Object
6 7 8 |
# File 'lib/fog/aws/parsers/kms/list_keys.rb', line 6 def reset @response = { 'Keys' => [] } end |
#start_element(name, attrs = []) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/aws/parsers/kms/list_keys.rb', line 10 def start_element(name, attrs = []) super case name when 'Keys' @keys = [] when 'member' @key = {} end end |