class AWS::Core::XmlGrammar::Context

@private

Public Class Methods

new() click to toggle source
# File lib/aws/core/xml_grammar.rb, line 33
def initialize
  @data = {}
end

Public Instance Methods

__set_data__(getter, value) click to toggle source

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
id() click to toggle source
# File lib/aws/core/xml_grammar.rb, line 37
def id
  @data[:id]
end
inspect() click to toggle source
# File lib/aws/core/xml_grammar.rb, line 52
def inspect
  methods = @data.keys
  "<Object #{methods.reject{|m| m =~ /=$/ }.join(', ')}>" 
end
method_missing(m, *args) click to toggle source
# 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
respond_to?(m) click to toggle source
# File lib/aws/core/xml_grammar.rb, line 48
def respond_to?(m)
  @data.key?(m.to_sym) or super
end