Class: Fog::Parsers::AWS::IAM::ListPolicyVersions
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::AWS::IAM::ListPolicyVersions
- Defined in:
- lib/fog/aws/parsers/iam/list_policy_versions.rb
Instance Method Summary collapse
- #end_element(name) ⇒ Object
- #finished_version(version) ⇒ Object
- #reset ⇒ Object
- #start_element(name, attrs = []) ⇒ Object
Instance Method Details
#end_element(name) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fog/aws/parsers/iam/list_policy_versions.rb', line 24 def end_element(name) case name when 'member' @response['Versions'] << @version @version = {} when 'IsTruncated' response[name] = (value == 'true') when 'Marker', 'RequestId' @response[name] = value end super end |
#finished_version(version) ⇒ Object
57 58 59 |
# File 'lib/fog/aws/parsers/iam/list_policy_versions.rb', line 57 def finished_version(version) @response['Versions'] << version end |
#reset ⇒ Object
6 7 8 9 10 |
# File 'lib/fog/aws/parsers/iam/list_policy_versions.rb', line 6 def reset super @stack = [] @response = { 'Versions' => [], 'Marker' => '', 'IsTruncated' => false } end |
#start_element(name, attrs = []) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/aws/parsers/iam/list_policy_versions.rb', line 12 def start_element(name,attrs = []) case name when 'Versions' @stack << name when 'member' if @stack.last == 'Versions' @version = {} end end super end |