Class: RightAws::IamInterface::GetGroupParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::IamInterface::GetGroupParser
- Defined in:
- lib/iam/right_iam_groups.rb
Overview
:nodoc:
Constant Summary
Constants inherited from RightAWSParser
RightAWSParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from RightAWSParser
#full_tag_name, #result, #tag, #xml_lib, #xmlpath
Instance Method Summary collapse
Methods inherited from RightAWSParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from RightAws::RightAWSParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser
Instance Method Details
#reset ⇒ Object
181 182 183 |
# File 'lib/iam/right_iam_groups.rb', line 181 def reset @result = { :users => [] } end |
#tagend(name) ⇒ Object
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/iam/right_iam_groups.rb', line 162 def tagend(name) case name when 'Marker' then @result[:marker] = @text when 'IsTruncated' then @result[:is_truncated] = @text == 'true' when 'GroupName' then @result[:group_name] = @text when 'GroupId' then @result[:group_id] = @text when 'UserName' then @item[:user_name] = @text when 'UserId' then @item[:user_id] = @text when 'member' then @result[:users] << @item else case full_tag_name when %r{/Group/Path$} then @result[:path] = @text when %r{/Group/Arn$} then @result[:arn] = @text when %r{/member/Path$} then @item[:path] = @text when %r{/member/Arn$} then @item[:arn] = @text end end end |
#tagstart(name, attributes) ⇒ Object
159 160 161 |
# File 'lib/iam/right_iam_groups.rb', line 159 def (name, attributes) @item = {} if name == 'member' end |