@private
# File lib/aws/core/xml_grammar.rb, line 33 def initialize @data = {} end
this gets called a LOT during response parsing, and having it be a public method is the fastest way to call it. Strictly speaking it should be private. @private
# File lib/aws/core/xml_grammar.rb, line 61 def __set_data__(getter, value) @data[getter.to_sym] = value end
# File lib/aws/core/xml_grammar.rb, line 37 def id @data[:id] end
# File lib/aws/core/xml_grammar.rb, line 52 def inspect methods = @data.keys "<Object #{methods.reject{|m| m =~ /=$/ }.join(', ')}>" end
# File lib/aws/core/xml_grammar.rb, line 41 def method_missing(m, *args) key = m.to_sym return super unless @data.key?(key) @data[key] end
# File lib/aws/core/xml_grammar.rb, line 48 def respond_to?(m) @data.key?(m.to_sym) or super end