Class AWS::Core::XML::Stub
In: lib/aws/core/xml/stub.rb
Parent: Object

This class takes the rules from an XML parser and then returns a stubbed reponse. This response has placeholder values based on the grammar, e.g.

  • Lists are stubbed with empty arrays
  • Indexes become empty hashes
  • Numeric types are returned as 0
  • etc

This is used primarily to help with the AWS.stub! utility.

Methods

Attributes

rules  [R]  @return [Hash]

Public Class methods

@param [Hash] rules

Returns a hash with stubbed values as if it had parsed an empty xml document. @param [Hash] rules An XML::Parser rule set. @return [Hash]

Public Instance methods

Returns a hash with stubbed values as if it had parsed an empty xml document. @return [Hash]

Protected Instance methods

[Validate]