Class: Aws::Log::ParamFormatter Private
- Inherits:
-
Object
- Object
- Aws::Log::ParamFormatter
- Defined in:
- lib/aws-sdk-core/log/param_formatter.rb
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.
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
1000
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ParamFormatter
constructor
private
A new instance of ParamFormatter.
- #summarize(value) ⇒ Object private
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.
11 12 13 |
# File 'lib/aws-sdk-core/log/param_formatter.rb', line 11 def initialize( = {}) @max_string_size = [: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.
15 16 17 |
# File 'lib/aws-sdk-core/log/param_formatter.rb', line 15 def summarize(value) Hash === value ? summarize_hash(value) : summarize_value(value) end |