Module: OAuth2::FilteredAttributes::ClassMethods

Defined in:
lib/oauth2/filtered_attributes.rb

Overview

Class-level helpers for configuring filtered attributes.

Instance Method Summary collapse

Instance Method Details

#filtered_attribute_namesArray<Symbol>

The configured attribute names to filter.

Returns:

  • (Array<Symbol>)


30
31
32
# File 'lib/oauth2/filtered_attributes.rb', line 30

def filtered_attribute_names
  @filtered_attribute_names || []
end

#filtered_attributes(*attributes) ⇒ void

This method returns an undefined value.

Declare attributes that should be redacted in inspect output.

Parameters:

  • attributes (Array<Symbol, String>)

    One or more attribute names



23
24
25
# File 'lib/oauth2/filtered_attributes.rb', line 23

def filtered_attributes(*attributes)
  @filtered_attribute_names = attributes.map(&:to_sym)
end