Class: RightAws::IamInterface::BasicIamListParser

Inherits:
RightAWSParser show all
Defined in:
lib/iam/right_iam_interface.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, #reset, #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

#tagend(name) ⇒ Object



293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/iam/right_iam_interface.rb', line 293

def tagend(name)
  case name
  when 'Marker'      then @result[:marker]       = @text
  when 'IsTruncated' then @result[:is_truncated] = @text == 'true'
  when (@items_splitter || 'member')
    @result[:items] << (@item.right_blank? ? @text : @item)
  else
    if Array(@expected_tags).include?(name)
      @item[name.right_underscore.to_sym] = @text
    end
  end
end

#tagstart(name, attributes) ⇒ Object



289
290
291
292
# File 'lib/iam/right_iam_interface.rb', line 289

def tagstart(name, attributes)
  @result ||= { :items => [] }
  @item     = {} if name == (@items_splitter || 'member')
end