Class: Aws::Log::ParamFormatter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/log/param_formatter.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Constant Summary collapse

MAX_STRING_SIZE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

String longer than the max string size are truncated

API:

  • private

1000

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ParamFormatter

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ParamFormatter.

API:

  • private



13
14
15
# File 'lib/aws-sdk-core/log/param_formatter.rb', line 13

def initialize(options = {})
  @max_string_size = options[:max_string_size] || MAX_STRING_SIZE
end

Instance Method Details

#summarize(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



17
18
19
# File 'lib/aws-sdk-core/log/param_formatter.rb', line 17

def summarize(value)
  Hash === value ? summarize_hash(value) : summarize_value(value)
end