Module: AWS::Core::Client::QueryXML

Overview

When a client class extends this module, its API configuration is parsed. For each operation in the API configuration, one client method is added.

Clients extending QueryXML all have in common their method of serializing request (input) paramters and parsing response (output) XML.

Defined Under Namespace

Modules: ErrorParser

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



29
30
31
32
# File 'lib/aws/core/client/query_xml.rb', line 29

def self.extended base
  base.send(:include, ErrorParser)
  base.send(:define_parsers)
end

Instance Method Details

#option_parsersHash<Symbol,OptionGrammar>

Returns a hash option parsers. Hash keys are client method names and hash values are OptionGrammar objects.

Returns:

  • (Hash<Symbol,OptionGrammar>)

    Returns a hash option parsers. Hash keys are client method names and hash values are OptionGrammar objects.



38
39
40
# File 'lib/aws/core/client/query_xml.rb', line 38

def option_parsers
  @option_parsers ||= {}
end

#xml_parsersHash<Symbol,XML::Parser>

Returns a hash of xml parsers. Hash keys are client method names and hash values are XML::Parser objects.

Returns:

  • (Hash<Symbol,XML::Parser>)

    Returns a hash of xml parsers. Hash keys are client method names and hash values are XML::Parser objects.



46
47
48
# File 'lib/aws/core/client/query_xml.rb', line 46

def xml_parsers
  @xml_parsers ||= {}
end