You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Log::ParamFilter

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ParamFilter

end



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

def initialize(options = {})
  @filters = Set.new(SENSITIVE + Array(options[:filter]))
end

Instance Method Details

#filter(value) ⇒ Object



21
22
23
24
25
26
27
# File 'gems/aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb', line 21

def filter(value)
  case value
  when Struct, Hash then filter_hash(value)
  when Array then filter_array(value)
  else value
  end
end