Module: Aws::Xray::AnnotationNormalizer

Extended by:
AnnotationNormalizer
Included in:
AnnotationNormalizer
Defined in:
lib/aws/xray/annotation_normalizer.rb

Overview

Instance Method Summary collapse

Instance Method Details

#call(h) ⇒ Hash

Parameters:

  • h (Hash)

    annotation hash.

Returns:

  • (Hash)


9
10
11
# File 'lib/aws/xray/annotation_normalizer.rb', line 9

def call(h)
  h.inject({}) {|init, (k, v)| init[normalize_key(k)] = normalize_value(v); init }
end